[thelist] Turning off hover for image links?

Stephen Caudill SCaudill at municode.com
Wed Jul 23 08:46:21 CDT 2003

I wasn't happy with any of the solutions proffered, so I did some investigating myself and I thought I'd offer the results to the list:
In a nutshell, you *can* get rid of the background-color on a linked image by setting the background-color of the hovered image to that of it's containers background color (specific styles on the page above).  The caveat being that you can not use margin, padding or change it's display to block.

hth someone,

<snip />
: the problem is obvious -- you're setting a background-color
: on a link with hover pseudo-class.  the solutions are obvious as
: well, either class links wrapped around images that have
: background-color set to transparent or never use images with
: transparency. 
: .jeff

More information about the thelist mailing list