hi all…
working on my new site, i’m trying to create this effect but i’m at a loss.
my menu system is an unordered list, each link being a list item. of course i can change the default look with no issues, but i would like each mouse over to be a different assigned color. i haven’t seen this done before either… any CSS gurus out there with the answer to this one? I would appreciate it!
Here is the HTML -
<ul class="mainNav">
<li><a href="layout3.php">Home</a></li>
<li><a href="123">Web Hosting</a></li>
<li><a href="123">About Us</a></li>
<li><a href="123">Contact Us</a></li>
</ul>
Here is the CSS -
ul.mainNav {
list-style: none;
width:213px;
margin: 0px;
padding: 0px;
background-color: #FFFFFF;
border-color: #FFFFFF;
border-style: solid;
border-width: 0px;
border-bottom-width: 4px;
}
ul.mainNav li {
border-color: #FFFFFF;
border-style: solid;
border-width: 0px;
border-top-width: 4px;
}
ul.mainNav li a:link, ul.mainNav li a:visited {
text-indent:7px;
background-color:#666666;
text-decoration:none;
color: #FFFFFF;
display:block;
width: 100%;
font-size:12px;
font-weight: bold;
padding-top: 5px;
padding-bottom: 5px;
}
ul.mainNav li a:hover {
background-color: #3399FF;
color: #FFFFFF;
}
see it in action - http://www.skattabrain.com/layout3.php