Incendio
04-09-2006, 04:53 PM
I want a border around an image,a nd then, when hovering, the border color should change
For example, like this site: http://jessicaalba.org
Try hovering their image, most of them has a greenish border that turns brown when hovering.
I have this code for it:
.pics {border: 2px solid #F5F4F4;}
a hover .pics {border: 2px solid #F5F4F4;}
But the problem is that this only works when an image is an link, like this
<a href="whatever.com"><img src="image.gif" class="pics"></A>
and not when I just have an image
<img src="image.gif" class="pics">
Is there any way I can fix this thingy?
For example, like this site: http://jessicaalba.org
Try hovering their image, most of them has a greenish border that turns brown when hovering.
I have this code for it:
.pics {border: 2px solid #F5F4F4;}
a hover .pics {border: 2px solid #F5F4F4;}
But the problem is that this only works when an image is an link, like this
<a href="whatever.com"><img src="image.gif" class="pics"></A>
and not when I just have an image
<img src="image.gif" class="pics">
Is there any way I can fix this thingy?