Skip to content

Instantly share code, notes, and snippets.

@jonlow
Last active August 29, 2015 14:03
Show Gist options
  • Save jonlow/099de7cd9eda434c8fb2 to your computer and use it in GitHub Desktop.
Save jonlow/099de7cd9eda434c8fb2 to your computer and use it in GitHub Desktop.
Fixes black speckle issue for PNG's in old IE (8 and down)
.png-trans img {
filter: progid:DXImageTransform.Microsoft.gradient(
startColorstr=#00FFFFFF, endColorstr=#00FFFFFF
);
/* If the above code doesn't work for IE7, try the below code instead. */
/*background: transparent;
-ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr=#00FFFFFF,endColorstr=#00FFFFFF)";
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#00FFFFFF,endColorstr=#00FFFFFF);
zoom: 1;*/
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment