В этом случае IE8 и Chrome выглядят одинаково, но Firefox отображает что-то другое:
В Firefox:
В Internet Explorer 8:
В Google Chrome:
Почему последние два имеют очень тонкое разделение?
Вот HTML:
<ul id="navigation">
<li><a href="@Url.Action("Index", "Home")">HOME</a></li>
<li><a href="@Url.Action("Index", "OurApproach")">OUR APPROACH</a></li>
<li><a href="@Url.Action("Index", "Menu")">MENU</a></li>
<li><a href="@Url.Action("Index", "Contact")">GET IN TOUCH</a></li>
</ul>
Вот CSS, (с использованием SCSS):
/* The inconsistency is in the margin-top rule of the UL. */
#navigation { /* This is just a UL element. I used the margin-top, to position it. */
float: left;
list-style-type: none;
margin-left: -16px;
margin-top: 117px;
li {
background-color: #934B00;
@include nav-radius;
color: White;
float: left;
font-size: 14px;
margin-right: 6px;
padding: 5px;
cursor:pointer;
a { text-decoration:none; color:White; }
a:hover { text-decoration:none; color:#904E00;}
a:visited { text-decoration:none; color:White; }
a:link { text-decoration:none; color:White; }
}
li:hover {
color:#904E00;
background-color:#EEA74F;
}
}