W3C home > Mailing lists > Public > www-html@w3.org > April 1998

Re: controlling background placement && turning off bkgrd tiling

From: Garth Wallace <gwalla@hotmail.com>
Date: Mon, 27 Apr 1998 03:21:57 PDT
Message-ID: <19980427102157.2309.qmail@hotmail.com>
To: www-html@w3.org, dreamwvr@altavista.net
>           Trying to get this clear in the mind. Is there a way to 
>           control background images on a page so that you can layer 
>           their placement or quadrant including default painting for 
>	    browsers that do not load backgrounds. Also since this has 
>           long since left the braincells is their a way to get a 
>           background image not to tile but take image and turn off
>           tiling of image used as background. I am sure there is but 
>           can't seem to remember for the life of me:'(

The only way I know is with stylesheets. Use the background property of 
the BODY tag:

BODY {background: url(bgimage.gif), no-repeat, scroll, _postition_)

where _position_ is either a pair of coordinates, horizontal then 
vertical (percentage or a unit of measurement), or one of the keywords: 
top, middle, bottom, left, center, or right. This will put the image 
"bgimage.gif" at _position_, without repeating it. The image will scroll 
with the window. Incidentally, CSS is now the preferred method of 
setting background images.

------------ "I am not a number! I am a free man!" ---------------
                                        - The Prisoner*
*or a USC student       <gwalla@planetall.com>

Get Your Private, Free Email at http://www.hotmail.com
Received on Monday, 27 April 1998 06:22:00 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:05:47 UTC