I've noticed some odd whitespace appearing under all my display: block elements within a meganavigation. Despite adding the code snippet below (which also determines column widths), I can't seem to pinpoint what's causing this issue. Whenever the meganav generates, the items set as "display:block" have an unnecessary space underneath them. This is also visible when hovering over items in the main navigation. Any suggestions on how to tackle this problem?
a {
font-family: "Frutiger LT Std 45 Light", sans-serif;
color: black;
text-decoration: none;
font-size: 10px;
display: block;
padding: 3px;
}
a:hover {
text-decoration: none;
color: white;
background-color: #c8a51b;
}
.nav {
background: #1b2c69;
width: 800px;
margin: 10px;
height: 30px;
}
.nav li {
list-style: none;
}
.nav > li {
padding: 0;
float: left;
position: relative;
}
.nav > li > a {
font-family: "Frutiger LT Std 45 Light", sans-serif;
float: left;
color: #fff;
font-size: 13px;
text-decoration: none;
line-height: 30px;
padding: 0 20px;
height: 43px;
text-transform: uppercase;
}
.nav > li:hover > a {
background: #FFF;
color: #1b2c69;
}
HTML:
<ul class="nav">
<li><a href="#">Home</a>
</li>
<li><a href="#">Our Company</a>
<div class="tab1">
<div class="container-1">
<div class="col1">
<a href="#">Business Reports</a>
<br>
<a href="#">Core Values</a>
<br>
<a href="#">Corp Priority Updates</a>
<br>
<a href="#">Critical Success Factors</a>
<br>
<a href="#">Daily Reports</a>
<br>
<a href="#">EBIT Chart</a>
<br>
<a href="#">HyVisability Scorecard</a>
<br>
<a href="#">Mission Statement</a>
<br>
<a href="#">Quality Vision</a>
<br>
<a href="#">Strategic Vision</a>
<br>
</div>
</div>
</div>
</li>