W3C home > Mailing lists > Public > www-style@w3.org > March 2001

Re: background width and height

From: Madison M <rllrgrrl@hotmail.com>
Date: Sat, 24 Mar 2001 16:57:34 +1100
To: www-style@w3.org
Message-ID: <F112pkpLkTgbLYluLCT0000b1b4@hotmail.com>
I don't recall seeing anyway to set the size of a background image. But
you could achieve what you want by putting the background image as a regular 
image into a div (so you could put it behind your other stuff) and 
stretching it as you would a normal image.

Maddy



>i was looking through the CSS specs for properties that set the width and
>height of the background image and was not able to find any.  am i missing
>something?
>
>i am trying to build a site that has iframes with widths and heights
>relative to the window size.  when the window resizes so do the iframes and
>i want their background images to resize with them.  i don't want to place
>an absolutely positioned image on the pages and set the width and height of
>that because the other content on the pages is not absolutely positioned 
>and
>is thus hidden behind the image (and it would be a real pain in the a** to
>have to go and change the image source in each file each time i want to use
>a different picture.  style should be separated from content so i don't 
>have
>to).
>
>once again i may be missing something.  either i am or, IMHO, the CSS specs
>are.  thanx in advance.
>
>                                                   mjumbe 
>
>_________________________________________________________________________
>Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
>

_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
Received on Saturday, 24 March 2001 00:58:09 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:54:08 GMT