My floated horizontal list is looking great on IE and Opera, but for some reason, Firefox is adding extra padding or margin at the top. I'm not sure how to fix it. Everything was fine until I had to add a display:inline to an image link next to it to solve another issue. I have a feeling it has to do with the display attribute. Any suggestions? I've been trying to solve this problem for the past eight hours.
#header {
background: url(../Images/header_bkg.png) repeat-x;
width: 800px;
height: 125px;
position: relative;
}
#header ul {
list-style-type: none;
margin: 0;
padding: 0;
float: right;
}
#header li {
float: left;
padding: 0 6px 0 0;
margin: 0;
}
#header a, #header a:visited {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: .7em;
color: #333333;
text-decoration: none;
padding: 2px;
display: block;
}
#header a:hover {
font-size: .7em;
color: #FFFFFF;
background: #DCAD33;
text-decoration: none;
display: block;
}
<div id="header">
<img src="../Images/right_header_bar.png" style="float:right" />
<a href="../index.html" style="background:none; display: inline"><img src="../Images/Scofield_logo.png" style="float:left; padding: 0 0 0 20px" /></a>
<ul>
<li><a href="../index.html">HOME</a></li>
<li><a href="../Portfolio/portfolio.aspx">PORTFOLIO</a></li>
<li><a href="../Unique/ShipReady.aspx">RARITIES</a></li>
<li><a href="../custom.html">CUSTOM</a></li>
<li><a href="../trade.html">TRADE</a></li>
<li><a href="../Company.html">COMPANY</a></li>
<li><a href="../press.html">PRESS</a></li>
<li><a href="http://scofieldhistoriclighting.blogspot.com/" target="_blank">BLOG</a></li>
<li><a href="../Contact.html">CONTACT</a></li>
</ul>
</div>