Posted By

zensir on 08/15/06


Tagged

css hover border


Versions (?)

Who likes this?

9 people have marked this snippet as a favorite

luman
clifton
theMacpenguin
tavo
marcoba
vali29
cidibee
markor
pixelz


border image rollover effect cross browser


 / Published in: CSS
 

URL: anibalestrella.com

  1. /* border image rollover effect */
  2. .highlight img{
  3. border: 1px solid red;
  4. }
  5.  
  6. .highlight:hover img{
  7. border: 1px solid red;
  8. }
  9.  
  10. .highlight:hover{
  11. color: red; /* Dummy for IE bug */
  12. }

Report this snippet  

Comments

RSS Icon Subscribe to comments
Posted By: jonhenshaw on August 15, 2006

zenzir, so what you're saying is that with this code I can set the border for red, and if I rollover the image, the border will change from red to red -- so I'll only know that it actually changed to red, as opposed to just stayed red. ;-)

You need to login to post a comment.