Setting the height for a Div
For soom reason, IE seems to ignore the height property when set from a CSS class. Take this html for example. It works perfectly in Firefox, yet is still a big
band
when viewed with IE.
<style>
.thinbar
{
background-color: darkblue;
height: 3px;
}
</style>
<div class="thinbar"></div>
It turns out that the font size property takes precedence over height
with IE 6. To remedy this behavior, simply add a
font-size: 1px;
property and value.