Try setting padding on your <a>
elements, remove padding from <li>
elements, and set a box-sizing: border-box
for <a>
elements to include their padding in their defined height
.upper-nav{
list-style-type: none;
background-color: #003264;
height: auto;
width: 100%;
position: fixed;
top: 0px;
left: 0px;
}
.upper-nav li{
display: inline;
list-style-type: none;
background-color: #003264;
vertical-align: middle;
float: left;
height: 50px;
text-transform: uppercase;
.selected{
background-color: #fff;
}
a:link, a:visited{
background-color: #003264;
color: #fff;
display: inline-block;
height: 100%;
text-decoration: none;
-moz-box-sizing: border-box;
box-sizing: border-box;
padding: 10px;
}
a:hover, a:active{
background-color: #fff !important;
color: #003264;
display: inline-block;
height: 100%;
text-decoration: none;
-moz-box-sizing: border-box;
box-sizing: border-box;
padding: 10px;
}
}