Hi there,
I created highlitght button for current page to change color, but problem is cause it also seems to extend above top border of main navigation bar.
Any hint?
#mainnav {
background-color: #404040;
padding: 0.5em 1em 1.5em 0em;
text-align:left;
text-decoration:none;
clear:both;
margin-bottom:0.2em;
height: 0.4em;
}
#mainnav ul li {
display:inline;
float: left;
}
#mainnav ul li a {
text-decoration:none;
color:#dddddd;
padding-right: 1.5em;
padding-bottom:0.63em;
padding-top: 0.63em;
padding-left: 1.5em;
margin: 0;
font-weight: lighter;
border-right: 0.1em solid #c4c8c0;
}
<div id="mainnav">
<ul>
<li><a id="homebutton" href="index.html">Home</a></li>
<li><a id="aboutmebutton"href="aboutme.html">About me</a></li>
<li><a id="myjobbutton"href="myjob.html">CV</a></li>
<li><a id="mediabutton"href="media.html">Media</a></li>
<li><a id="contactbutton"href="contact.html">Contact</a></li>
</ul>
</div><!--end mainnav -->