What does this piece of CSS do?

a#logo { _background:transparent; _filter:progid:dXImageTransform.Microsoft.alphaImageLoader(src="/assets/images/header/logo.png", sizingMethod="crop"); _cursor:pointer; } 
+4
source share
2 answers

It fixes a problem with IE rendering transparent PNG by specifying a different Image Loader for IE.

This is definitely a specific IE. However, most of the time you will not see this explicitly in CSS, since most pages have several transparent PNGs per page. Most developers use Javascript to fix this on all the images on the page.

The most popular of these scenarios is TwinHelix IE PNG Fix .

+4
source

This makes Internet Explorer transparent PNG Alpha. I also believe that this does not comply with the official css standard, so I would avoid it whenever possible. However, unfortunately, the use of pure standards is a utopia in cross-browser web development ...

0
source

All Articles