Hi there,
I am trying to get my link text as well as the buttons to change together on hover of the image.
Currently, the image changes on hover and the text changes colour on hover of the actual text but the text won't change if only the image is hovered on.
See here: http://www.arnwoodvets.co.uk/bespoke.html
I kept the links as text so that they could be changed easily and not need a new gaphic for each new one.
I thought that setting the colour to #fff on the li:hover class would do it but it seems to ignore this  . I also can't get the active image to change!!
Any help/suggestions offered would be greatly appreciated!
Here is my code:
a:hover {
color: #fff;
}
a:active {
color: #004200;
}
.left ul li {
padding: 15px 0px 0px 0px;
background: url(images/Buttonz.gif) no-repeat center left;
line-height: 2.5em;
list-style-type: none;
list-style-position: inside;
vertical-align: middle;
}
.left ul li a {
padding: 20px;
padding-left: 40px;
position:relative;
text-align: right center;
font-size: 14px;
font-weight: 700;
}
.left ul li:active {
padding: 15px 0px 0px 0px;
line-height: 2.5em;
list-style-type: none;
list-style-position: inside;
vertical-align: middle;
background-image: url(/images/Button2.gif);
}
.left ul li:hover {
padding: 15px 0px 0px 0px;
line-height: 2.5em;
list-style-type: none;
list-style-position: inside;
vertical-align: middle;
background-image: url(/images/Button2.gif);
color: #fff;
}
Thanks!
|