3 div independently relative and top aligned

Posted by Knu on Stack Overflow See other posts from Stack Overflow or by Knu
Published on 2010-06-12T20:59:13Z Indexed on 2010/06/12 21:02 UTC
Read the original article Hit count: 146

I have 3 div top aligned that should be relative to a previous div (not between them > so i can't use floats or position:inline-block either).
If you set display:none on 2 divs the last one shouldn't move.
I can't use position:absolute because there's a relative footer underneath.

I tried using a wrapper but it can't work cause the height of the divs is not fixed.
The height of the wrapper gets completely ignored anyway (by the following footer) unless Im using relative children.
vertical-align:top doesn't work either.

Any ideas?

© Stack Overflow or respective owner

Related posts about css

Related posts about css-positioning