Highlight Image onMouseover (border)


/ Published in: CSS
Save to your folder(s)



Copy this code and paste it in your HTML
  1. .highlightit img{
  2. border: 1px solid #ccc;
  3. }
  4.  
  5. .highlightit:hover img{
  6. border: 1px solid navy;
  7. }
  8.  
  9. .highlightit:hover{
  10. color: red; /* Dummy definition to overcome IE bug */
  11. }

URL: http://www.cssdrive.com/index.php/examples/exampleitem/highlight_image_border/

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.