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

Re: Why no compositional positioning?

From: Thomas Davie <tom.davie@gmail.com>
Date: Mon, 16 Mar 2009 15:28:42 +0100
Cc: "Tab Atkins Jr." <jackalmage@gmail.com>, www-style@w3.org
Message-Id: <949D60AC-3FF7-4F43-B76E-3F0B2CCFAB46@gmail.com>
To: Aryeh Gregor <Simetrical+w3c@gmail.com>

On 16 Mar 2009, at 15:18, Aryeh Gregor wrote:

> On Mon, Mar 16, 2009 at 10:08 AM, Thomas Davie <tom.davie@gmail.com>  
> wrote:
>> Maybe I am indeed missing something that is in css.  I'll give a  
>> simple
>> example:
>> [snip]
> You just want:
> [snip]
> position: absolute is not relative to the document root.  See, e.g.,
> the example here:
> http://www.w3.org/TR/CSS21/visuren.html#comp-abspos

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:


I had assumed previously that absolute positioning was positioning  
elements relative to the top-left of the document window, 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.   
Apparently though this is not what's happening.

Sorry if this is getting off topic for this list, but could someone  
explain why I get this layout, not one not-unlike a table.


Received on Monday, 16 March 2009 14:29:29 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:38:25 UTC