TTh, CLA 4-27
1:00 PM -2:50 PM
CRN 71857
Method based on stylin' with CSS by Charles Wyke-Smith, New Riders, 2005.
You can use CSS to make text menu links that look like graphical buttons, by converting the links to block elements and using the a:hover pseudo-class property.
Save your page as you go, view in the browser and validate the XHTML to be sure you close the tags correctly
ul.mainnav li {
border-top:6px solid #0000ff;
border-left:6px solid #0000ff;
padding-left:2px;
line-height:1.3em;
}
ul.mainnav li a:link, ul.mainnav li a:visited {
text-decoration:none;
display:block;
width:100%;
}
ul.mainnav li a:hover {
background-color: #ffcc00;{
color:#000000;{
width:inherit;
}