PNG Background Transparency IE


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



Copy this code and paste it in your HTML
  1. /* For IE. Mozilla ignores. */
  2. .element{
  3. //filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true, sizingMethod=scale src='images/image.png');
  4. }
  5.  
  6. /* For others. IE ignores styles with [attributes]. */
  7. .element[class]{
  8. background: url('images/image.png') no-repeat center center;
  9. }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.