Opacity Hack


Published in: CSS 


Sets the opacity of an element and its children. Doesn't validate. Mozilla began supporting the opacity rule in version 1.7, so '-moz-opacity' may not be necessary...

  1. selector {
  2. filter: alpha(opacity=60); /* MSIE/PC */
  3. -moz-opacity: 0.6; /* Mozilla 1.6 and older */
  4. opacity: 0.6;
  5. }

Report this snippet 

Comments

RSS Icon Subscribe to comments
Posted By: Roshambo on August 16, 2006

As a note, I believe, Gecko 1.7 was implemented in Firefox 1.5.

You need to login to post a comment.