Image Hovers by eckert


If you have an image and you want to use CSS to make a hover, here’s how.
This code simply changes the border color, but you can change the CSS to make the hover do anything you want.

img {border: 1px solid #c5c5c5;}
img:hover {border: 1px solid #000;}

Click HERE for an example.

If you have the code inside a div (i.e. picture), you can add that id before the code.

#picture img {border: 1px solid #c5c5c5;}
#picture img:hover {border: 1px solid #000;}

Tags: , , , ,

Leave a Reply


It’s Called Web Design is proudly powered by WordPress
Entries (RSS) and Comments (RSS). Valid XHTML