Stretch body background image

liunx

Guest
How can a stretch the background image so that it fills in the whole body tag. I've written
<body style="background:url('jpg/solar.jpg')">
but as the image with and height are 200x200 pixels, it fills only the upper left corner. I know I can set it to repeat x or y, but that's not what I want.
Help me please stretch the image to fill in the whole body [screen].
I expect it can be done with CSS, but.. how?The background can't be stretched using css. You could however resize your image to make it fit to the size you want.Originally posted by claire_m
The background can't be stretched using css. You could however resize your image to make it fit to the size you want.
Yeah, and you could make it fixed so that it remains in place when the page content scrolls.I've done it before, but it's rather awkward to my mind, I have to
create the same image 800x.., 1024x.., 2048x.., according to each user's screen resolution. Do you do the same thing?



[zaibaly muhi deda]
 
Back
Top