I have the following code to create a 1px height line:
<div style="width:300px; height:1px; background-color:#ff3300; margin-top: -1px;"></div> <!-- top red line -->
The code works fine in Firefox, however in IE8, it is displayed as a 10px height line or so. How can I force IE to take into account the specified height?
Edit:
- I just tried setting the
min-heightproperty to 1px but that didn’t work either. max-heightis ignored by IE too- Setting the
line-heightto 1 doesn’t help
Why is IE ignoring all my CSS rules?
Just set font-size to 1px; IE is limiting height of this div to font size.