[thelist] Changing Layer Background Color OnMouseOver

ben morrison morrison.ben at gmail.com
Sat Feb 26 07:50:11 CST 2005


You can change the background-color using a:hover:

<style type="text/css">
#mylayer a {
padding:5em;
background-color:#CC0000;
}
#mylayer a:hover {
background-color:#CCCCCC;
}
</style>
</head>
<body>
<div id="mylayer">
<a href="#">mylayer text</a>
</div>
</body>

ben


More information about the thelist mailing list