Sebastian Dammark wrote:
> In the link below i have 2 DIV's. (red and black border)
>
> In IE the DIV's get their height from the amount of content.
> But that doesn't happen in FF, Opera etc.
>
> Any fix or explanation?
>
> http://www.dammark.net/files/html/autoliften/
FF, Opera etc. are behaving correctly: containers shall not expand
beyond given dimensions - unless told to do so.
IE expands everything by default *when* we give an element dimensions,
because of its 'hasLayout'[1] bug.
Solution: tell FF, Opera etc. to expand and contain what's inside,
regardless of given dimensions - i.e.: make container behave like a table...
#topholder, #contentholder {display: table;}
...and allow contentarea to grow too...
#contentarea {height: auto;}
regards
Georg
[1]http://www.satzansatz.de/cssd/onhavinglayout.html
--
http://www.gunlaug.no
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7b2 testing hub -- http://css-discuss.incutio.com/?page=IE7
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/