I've done this before years ago but can't quite remember how to do it.
I want a DIV with text in to become a link - the whole DIV - and when the mouse enters it the background-color changes.
If the user clicks anywhere in the DIV it will activate the link.
Thanks
[CODE
.menu1 {
float: left;
}[/code]
Code:
.menu1 a:link, .menu1 a:visited, .menu1 a:active {
color: black;
text-decoration: none;
font-weight: normal;
background-color: #006666;
}
.menu1 a:hover {
color: #FFFFFF;
text-decoration: underline;
font-weight: normal;
background-color: #000000;
}
|