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

Re: Why no compositional positioning?

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Mon, 16 Mar 2009 10:40:21 -0400
Message-ID: <49BE64D5.8050203@mit.edu>
To: Thomas Davie <tom.davie@gmail.com>
CC: www-style@w3.org
Thomas Davie wrote:
> Thanks, okay, I don't yet fully understand what's going on here then.  I 
> have an example which I expect to produce a table using divs (yes, I 
> know, this is as bad as producing divs using tables, but it's a good 
> example of trying to achieve a certain layout and apparently being 
> stymied by css:

Is there a reason to not be using the table-* display types here?

> I had assumed previously that absolute positioning was positioning 
> elements relative to the top-left of the document window

They're not.  But they _are_ taken out of flow.

> causing the 
> absolutely positioned elements to not be part of their parent div, and 
> hence the relatively positioned ones to have a height of 0.

Which gives that result.

-Boris
Received on Monday, 16 March 2009 14:45:39 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:17 GMT