Re: Why no compositional positioning?

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

> On Mon, Mar 16, 2009 at 10:08 AM, Thomas Davie <>  
> 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:

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