Navigation CSS

liunx

Guest
Hello,

I have two navigation graphic with the same text but different color on one.
With 5 links but on the other graphic it has a background color with the
text. So when it is rollover on one of the link it just changes.

How can I manage to create that in css?

Thanks<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
<title>css Image rollover</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css">
<!--
#menu a {
display:block;
width:5em;
height:2em;
background:#ccc url(img1.gif) no-repeat;
}
#menu a:hover {
background:#ccc url(img2.gif) no-repeat;
}
-->
</style>

</head>
<body>
<ul id="menu">
<li><a href=http://www.webdeveloper.com/forum/archive/index.php/"#">link</a></li>
</ul>
</body>
</html>
btw: if it's just the background color that changes, make a transparent image and change the background color on rollover.
 
Back
Top