Support Transparency/Opacity in All Major Browsers


/ Published in: CSS
Save to your folder(s)



Copy this code and paste it in your HTML
  1. div {
  2. /* standards-compliant browsers */
  3. opacity:0.7;
  4.  
  5. /* The following is ignored by standards-based browsers */
  6. -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=70)"; /* IE8 */
  7. filter: alpha(opacity=70); /* IE 5-7 */
  8. }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.