brothercake
10-08-2004, 09:20 PM
And it's so simple, it's galling!
Internet Explorer misinterprets the normal height property - if an element has more content than there's room for, IE expands the container, when what it should do is allow the content to flow outside. That much we already know.
But then I realised - that interpretation of height is identical to the correct implementation of min-height!! So all you have to do is this:
element { min-height:100px; }
* html element { height:100px; }
Unless I've missed something really stupid, that's it - that's all it takes :) And it should work identically for width as well.
Check it out on this dev site: http://cc121.karovastore.com/ - the five colored boxes in the middle
Internet Explorer misinterprets the normal height property - if an element has more content than there's room for, IE expands the container, when what it should do is allow the content to flow outside. That much we already know.
But then I realised - that interpretation of height is identical to the correct implementation of min-height!! So all you have to do is this:
element { min-height:100px; }
* html element { height:100px; }
Unless I've missed something really stupid, that's it - that's all it takes :) And it should work identically for width as well.
Check it out on this dev site: http://cc121.karovastore.com/ - the five colored boxes in the middle