Posted By

juno on 03/19/07


Tagged

opacity img


Versions (?)

Who likes this?

13 people have marked this snippet as a favorite

Hirmine
dmarten
DataSquirrel
vali29
blackabee
Bluewall
elemint
pflangan
dfaulty
cromozooom
shimoyama
wirenaught
atulkransingh


image hover opacity


 / Published in: CSS
 

  1. #menu ul li a img{ /* Image opacity */
  2. filter: alpha(opacity=40);
  3. filter: progid:DXImageTransform.Microsoft.Alpha(opacity=40);
  4. -moz-opacity: 0.40;
  5. opacity:0.4;
  6. }
  7.  
  8. #menu ul li a:hover img { /* Image opacity when rolled over */
  9. filter: alpha(opacity=100);
  10. filter: progid:DXImageTransform.Microsoft.Alpha(opacity=100);
  11. -moz-opacity: 1.00;
  12. opacity:1;
  13. }

Report this snippet  

You need to login to post a comment.