Step One: Copy the following code into your stylesheet and edit the blue areas:
a.nav:link, a.nav:visited, a.nav:active {
font-size: number herept;
font-family: font type here;
font-weight: select from bold, normal or lighter;
line-height: this decides how big the bar behind the font will be. Take the font size into consideration here.;
color: hexidecimal code for the color of the FONT. DO NOT forget the # sign or it might not work in multiple browsers;
background-color: hexidecimal code for the color of the BAR;
cursor: ;
display: block;
text-align:select either right, center or left;
border-right: numberherepx solid #colorcodehere this is the settings of the colored end of the bar;
text-transform: choose from uppercase or lowercase;
margin: 1px;
padding: 0px;
text-decoration: none;
}
Step Two: Copy the code above again and paste under the code we just finished. We're going to make a small change with this code group though. At the beginning where it says a.nav:link, a.nav:visited, a.nav:active, delete and replace it with a.nav:hover.
Step 3: This part of the code will determine what the link bar looks like on hover. A few ideas:
In other words, customize it to fit your layout and have fun with it!
I hope you find this tutorial helpful! If I have forgotten anything or if you find a problem with the sample code, please feel free to contact me. Happy coding!