3 div independently relative and top aligned
- by Knu
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?