Dec 18
min-height in Firefox
by theigor
So I’ve been ripping my hair out for a few minutes trying to get a simple div to display correctly in Firefox. The puzzling thing is that it looks great in IE and doesn’t work at all in FF - something that is usually the opposite.
In any case, I’ll cut to the chase - if you’re trying to get a div to display with a min-height and you can’t, for the life of you, figure out why it’s not working in FF, simply set the div to clear on both sides like so:
.SomeClass
{
min-height: 39px;
clear: both;
padding: 5px;
}
The padding is just for my purposes.
Good luck!