Style Sheet for Horizontal Tab Menu

Example from the New Media Program Page:

Open and save the style sheet here.

@charset "UTF-8";
/* CSS horizontal menu with body id and rollover color change */

/* begin css tabs */

ul#tabnav { /* general settings */
text-align: left; /* set to left, right or center */
margin: 1em 0 1em 0; /* set margins  */
font: bold 11px verdana, arial, sans-serif; /* set font  */
border-bottom: 1px solid #CC9933; /* set border COLOR */
list-style-type: none;
padding: 3px 10px 3px 10px; 
/* THIRD number must change with respect to padding-top (X) below */
}

ul#tabnav li { /* do not change */
display: inline; 
}

body#tab1 li.tab1, body#tab2 li.tab2, body#tab3 li.tab3, body#tab4 
li.tab4, body#tab5 li.tab5, body#tab6 li.tab6 { /* settings for selected tab */
border-bottom: 1px solid #CC9933; /* set border color to page background color */
background-color: #ffffff; /* set background color to harmonize with above border color */
}

body#tab1 li.tab1 a, body#tab2 li.tab2 a, body#tab3 li.tab3 a, body#tab4 li.tab4 
a, body#tab5 li.tab5 a, body#tab6 li.tab6 a { /* settings for selected tab link */
/* set the id in the body tag: */
background-color: #cccccc; /* set selected tab background color  */
color: #000; /* set selected tab link color  */
position: relative;
top: 1px;
padding-top: 4px; /* must change with respect to padding (X) above and below */
}

ul#tabnav li a { /* settings for all tab links */
padding: 3px 4px; 
/* set padding (tab size); FIRST number must change with respect to padding-top (X) above */
border: 1px solid #CC9933; /* set border COLOR; usually matches border color specified in #tabnav */
background-color: #cfc; /* set unselected tab background color as desired */
color: #666; /* set unselected tab link color */
margin-right: 0px; /* set additional spacing between tabs */
text-decoration: none;
border-bottom: none;
}

ul#tabnav a:hover { /* settings for hover effect */
background: #ffff99; /* set desired hover color */
}

/* end css tabs */

The HTML markup looks like this:

<ul id="tabnav">
<li class="tab1"><a href="http://fairfield.edu/vpa_media.html">Introduction</a></li>
<li class="tab2"><a href="http://fairfield.edu/nmedia_courses.html">Course of Study </a> </li>

<li class="tab3"><a href="http://fairfield.edu/nmedia_tech_support.html">Technical Support </a></li>
<li class="tab4"><a href="http://fairfield.edu/nmedia_graduation.html">After Graduation </a></li>
<li class="tab5"><a href="http://fairfield.edu/nmedia_student_work_1.html">Student Work </a></li>
</ul>