Re: [css3-selectors] "recursive" selectors

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 UTC