Div Transparency


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

This works on all browsers including IE6/7/8, FF, Chrome, Safari.

Not sure if there are more reliable than this one. If you find one, please comment.

Thanks.


Copy this code and paste it in your HTML
  1. #div {
  2. opacity: .5;
  3. -ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=50)";
  4. filter: alpha(opacity=50);
  5. }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.