CSS PNG Image Fix for IE


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

The selector portion of the CSS rule targets which XHTML tags/classes this rule will be applied to. At first glance, it looks like all img tags as well as all tags with a class of "png". You’ll notice the * html in front of both of these. Wait, there is no “anytag” preceding the html tag, so this won’t get applied! True. For all non-crappy (that is a pro term by the way) browsers, this rule won’t get applied. However, since IE6 is a pile, it thinks that there is a tag before the html tag, so it will apply this rule. Great! Now IE6 is the only browser that will use this rule.

URL: http://komodomedia.com/blog/index.php/2007/11/05/css-png-image-fix-for-ie/

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.