...

View Full Version : Image Hover Background Colour



mark87
12-16-2005, 06:00 PM
I want the background colour of the images to change as they are hovered over. It works in Firefox, but not IE, where IE is almost treating the :hover as :active. :confused:

http://www.markaylward.co.uk/caleta/gallery.html

circusbred
12-16-2005, 06:33 PM
What you want to do is set the background to the <A> not the <img>

.thumb {
margin: 0;
height: auto;
float: left;
text-align: center;
}

.thumb a {
display:block;
padding:5px;
margin:5px;
border: 1px solid #CCC;
}

.thumb img {
border: 0;
background: #FFF;
}

.thumb a:hover { background: #EBD4B2; }

mark87
12-16-2005, 06:39 PM
Thanks.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum