Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Reply
 
Thread Tools Search this Thread
  #1  
Old 27-02-2009
Member
 
Join Date: Jan 2009
Posts: 52
Background image on a site

hello people.
I have a site in progress but I would have a background image that vision adjusts to the width and height of the people their screen.
so that my image full browser takes.

I have to css code but it does not allow this


Cascading Style Sheet:
Quote:
body (
background-image: url (background.gif);
background-repeat: no-repeat;
position: absolute;
height: 100%;
width: 100%;
margin: 0;
padding: 0;
)

or should I do that with javascript?
please tell me thank you.
Reply With Quote
  #2  
Old 27-02-2009
Member
 
Join Date: Jan 2008
Posts: 1,515
Re: Background image on a site

not sure but 2nd line change even this:
background-repeat: repeat;

A background image can not dimensions passing through CSS, so do not adjust to the resolution.
Reply With Quote
  #3  
Old 27-02-2009
Member
 
Join Date: Dec 2008
Posts: 322
Re: Background image on a site

I recommend to use a pattern instead of an image, though this does not answer your question.

If you have demonstrated how it would need would be useful on tips.
Reply With Quote
  #4  
Old 27-02-2009
Member
 
Join Date: Feb 2008
Posts: 1,848
Re: Background image on a site

Best way is probably an img tag in the background to levitate (using z-index), these 100% height and width to and fixed positioning.This is possible with CSS3. This is already supported by Safari, Opera and other WebKit-based browsers
Reply With Quote
  #5  
Old 27-02-2009
Member
 
Join Date: Apr 2008
Posts: 2,001
Re: Background image on a site

ok I have a put the CSS code that use:
Cascading Style Sheet:
Quote:
body
(
background-color: FFFFFF;
background-image: http: //4.100.114.106/467950001-4680...6_6_m8Pr.jpeg;
background-position: top left;
background-repeat: repeat;
background-attachment: fixed;
)

Now I see that they are indeed only an image with height and width to 100% in the code already.
Reply With Quote
Reply

  TechArena Community > Software > Software Development
Tags: , , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "Background image on a site"
Thread Thread Starter Forum Replies Last Post
How to set different background image for HTC Incredible S Purujeet Portable Devices 6 29-11-2011 10:54 PM
Background image for xdm Maya Angelou Windows Software 4 22-04-2010 10:04 AM
TD background image Chrisch Software Development 3 18-11-2009 01:06 PM
How to put an image as MySpace background? Tobius Customize Desktop 2 30-03-2009 11:29 AM
Background image is repeated Jkbaseball Customize Desktop 8 22-10-2008 02:25 PM


All times are GMT +5.5. The time now is 04:57 AM.