Posted By

blueocto on 01/11/11


Tagged

transparency


Versions (?)

Who likes this?

3 people have marked this snippet as a favorite

neex123
alf
nebojsac


Cross Browser Transparency


 / Published in: CSS
 

URL: http://www.electrictoolbox.com/cross-browser-transparency/

The CSS3 standard introduces the opacity property for making elements opaque or transparent. Older browser also have support for opacity using various other properties and, in the case of Internet Explorer, filters. This post looks at how to achieve cross-browser, and backward compatible transparency.

  1. filter:alpha(opacity=75); /* for internet explorer */
  2. opacity: 0.75; /* CSS3 standard */
  3. -moz-opacity:0.75; /* for older gecko browsers */
  4. -khtml-opacity: 0.75; /* for older webkit browsers */

Report this snippet  

You need to login to post a comment.