Cross-Browser Transparency via CSS

Submitted by:Andery Smith

Date added:27 February, 2014

Category:CSS

You can quickly and easily apply transparency to any supportive element by adding the following CSS code your stylesheet:

Tags: transparency , css stylesheet

Code Snippet:

.transparent {
filter: alpha(opacity=50); /* internet explorer */
-khtml-opacity: 0.5; /* khtml, old safari */
-moz-opacity: 0.5; /* mozilla, netscape */
opacity: 0.5; /* fx, safari, opera */
}
 
 

Comments