W3C home > Mailing lists > Public > www-style@w3.org > August 2002

Re: Features missing in background graphics through css

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Wed, 07 Aug 2002 17:58:44 -0400
Message-Id: <200208072158.RAA08103@nerd-xing.mit.edu>
To: Liorean <Liorean@user.bip.net>
cc: www-style@w3.org

> First, I'd like to be able to position the center of some graphics, without 
> knowing the size of either the container or the image, at the exact center 
> of the container. Currently, I can only position the upper left corner of 
> the graphics in any given spot. Same thing of course applies to positioning 
> the bottom right corner of the graphics in the bottom right corner of the 
> container, and most combinations in between as well.

background-position lets you do exactly what you want (it's in CSS2).

> Second, I find myself missing a way to stretch a background graphics either 
> to fill the entire container or to fill just the horizontal or vertical 
> space, possibly with repeating in the other direction.

background-repeat is in CSS2.  background-size (proposed in CSS3) will
do the stretching you want.

Boris
-- 
In the first place, God made idiots; this was for
practice; then he made school boards.
                                     -- Mark Twain
Received on Wednesday, 7 August 2002 18:00:57 GMT

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