W3C home > Mailing lists > Public > www-style@w3.org > April 2003

Re: [css3-selectors] "recursive" selectors

From: Ian Hickson <ian@hixie.ch>
Date: Tue, 29 Apr 2003 09:03:37 -0700 (PDT)
To: Ben Godfrey <afternoon@uk2.net>
Cc: "www-style@w3.org" <www-style@w3.org>
Message-ID: <Pine.LNX.4.50.0304290901070.26619-100000@dhalsim.dreamhost.com>

On Tue, 29 Apr 2003, Ben Godfrey wrote:
> On Tuesday, Apr 29, 2003, at 15:39 Europe/London, Ian Hickson wrote:
>>
>> Why would you want to center all block level elements?
>
> It would be a simple page, say three blocks, [...] And you could present
> it really quite nicely with the following very simple stylesheet [...]

But that's not centering all the blocks, that's centering all the contents
of the body element, which is trivially done:

   body > * { margin-left: auto; margin-right: auto; }

-- 
Ian Hickson                                      )\._.,--....,'``.    fL
"meow"                                          /,   _.. \   _\  ;`._ ,.
http://index.hixie.ch/                         `._.-(,_..'--(,_..'`-.;.'
Received on Tuesday, 29 April 2003 12:03:25 GMT

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