I have some DIVS that I have text links in. I would like the whole div to be a link. I would like it so that when the user rolls the mouse over any part of the div it is a link and the hover style kicks in which in this case will change the background of the div.
This works ok in FF but not in IE7.
Here is what I've got so far, any ideas:
Code:
.button {
height:20px;
line-height:20px;
background-color:#FFCCFF;
float:right;
margin-top: 1px;
border:#999999 1px solid;
text-align:center;
padding:0px;
display: block;
font-weight:bold;
}
.button a, .button a:active, .button a:focus {
color:#000000;
display: block;
text-decoration: none;
background-color:#96D2F3;
}
.button a:hover {
color:#000000;
display: block;
text-decoration:none;
background-color:#00FF00;
}
Thanks.
|