Forum Moderators: not2easy
What are your techniques for making unique horizontal rules?
At the moment I am using this code to separate content:
/* CSS */
.line {
height: 5px;
padding: 0px;
background: url(../img/bg_3x6.gif) repeat-x left top;
margin: 0px auto 0px;
}
Html:
<div class="line"></div> The above code works great for all non IE-PC browsers... when I view on PC with IE, there appears to be 5px of padding added to top and bottom... is very annoying... IE is a POS, I hate IE...
Anyway, does anyone have any suggestions for a more universal way to get a unique <hr /> on a page? I would prefer something that will be an exact height in any browser/platform.
Cool cool cool,
Thanks!
Cheers
Micky
<div class="hr"><hr /></div>
with CSS like:
.hr {
height: 1px;
background:F00;
}
hr {
display: none:
}
It's an extra element, but the code stays accessible. You can add your graphical background to the div. HarryM's right about the font inheritance. That's what's causing your specific problem.