I’ve got this codes:
ul
{ list-style-type: none;
margin:0;
padding:0;
overflow: hidden;
}
a:link,a:visited
{ display: block;
width: 240px;
background: transparent url(./style/black2.jpg) ;
text-align: right;
text-transform: uppercase;
text-decoration: none;
height: 40px;
color: #ffffff
}
a:hover,a:active
{ background: transparent;
color: #000000
}
and this one
<ul>
<li><a href="http://127.0.0.1:4001/wbdemo/pages/abc.php"><h99>Home<h99/></a></li>
<li><a href="#"><h99>Home</h99></a></li>
<li><a href="#"><h99>Home</h99/></a></li>
<li><a href="#"><h99>Home</h99/></a></li>
<li><a href="#"><h99>Home</h99/></a></li>
</ul>
Everything that has got links “hovers” now.
I want to limit a:hover just to the menu section and seperate it from the rest.
If you want to style only the links which are inside
<ul>element, you should code it like this: