fluid vertical layot while using positioning schemas
Posted: Sun Oct 31, 2004 2:19 pm
i want to put an absolute positioned div inside relatively positioned div...
(so the inner div's coordinates are relative to its containg div)
both divs intentionaly don't have height because i want the layot to be verticaly fluid...
but there is a major "problem" with this...
when i put text inside inner div it expands and takes neccasery height
but container div DOESN'T expands...
if the inner div not absolutly positioned then containg div expand
I understand that this behaviour is correct because although inner div is positioned relative to its container, it is still out-of-flow box, so contaning div doesn't care of its inner div's height...
Does anyone has an idea how to achive fluid vertical layot while using positioning schemas?
----------------------------------------------
Why i need all that?
i have pretty complex layot and at first i tried to do it with tables but ran into many difficalties (nesting tables inside tables)...
so i left it and now i'm trying to do the same with boxes and positioning...
i need to use a lot of absolute and relative positioning....like nesting few times absolute positioned boxes inside relativly positioned one's...
(so the inner div's coordinates are relative to its containg div)
both divs intentionaly don't have height because i want the layot to be verticaly fluid...
but there is a major "problem" with this...
when i put text inside inner div it expands and takes neccasery height
but container div DOESN'T expands...
if the inner div not absolutly positioned then containg div expand
I understand that this behaviour is correct because although inner div is positioned relative to its container, it is still out-of-flow box, so contaning div doesn't care of its inner div's height...
Does anyone has an idea how to achive fluid vertical layot while using positioning schemas?
----------------------------------------------
Why i need all that?
i have pretty complex layot and at first i tried to do it with tables but ran into many difficalties (nesting tables inside tables)...
so i left it and now i'm trying to do the same with boxes and positioning...
i need to use a lot of absolute and relative positioning....like nesting few times absolute positioned boxes inside relativly positioned one's...