I have a UL with LI's creating the main navigation on a website, what is happening is that there is a space between each LI which I can't find any cause for this space/gap, I'm aware of the area between closing and opening LI's issue and I've already tried changing the LI's to </li><li>
for each list item with no success.
I've searched through stack already and none of the LI spacing questions have solved my issue.
This is occurring on Firefox amoung other browsers which is a bit odd as I'm only really used to only seeing LI layout issues on IE browsers, namely earlier versions.
I've outlined the code I'm using below, any help or advice is greatly appreciated.
HTML:
<ul class="nav">
<li><a href="#">Link 1</a></li>
<li><a href="#">Link 2</a></li>
<li><a href="#">Link 3</a></li>
<li><a href="#">Link 4</a></li>
</ul>
CSS:
ul.nav {
height: 40px;
margin: 0px;
padding: 0px;
list-style: none;
background: #555555;
}
ul.nav li {
color: #FFFFFF;
display: inline;
}
ul.nav li a {
padding: 8px 10px 8px 10px;
color: #FFFFFF;
font-size: 18px;
font-weight: bold;
display: inline-block;
}
ul.nav li a:hover {
background: #660000;
text-decoration: none;
}