Comments on: Two Helpful IE Hacks http://mattsnider.com/css/two-helpful-ie-hacks/ Understanding JavaScript and Frameworks Sun, 07 Sep 2008 04:16:33 +0000 http://wordpress.org/?v=2.1.2 By: Adam Messinger http://mattsnider.com/css/two-helpful-ie-hacks/#comment-270 Adam Messinger Mon, 17 Sep 2007 03:27:42 +0000 http://mattsnider.com/css/two-helpful-ie-hacks/#comment-270 Using the AlphaImageLoader filter in CSS for IE6 PNG transparency works well enough in many circumstances, but it can fail in certain cases. For example, it can cause trouble when a transparent PNG is used as the background for an element that contains links. I've found iepngfix.htc to offer a more consistent and trouble-free solution: http://www.twinhelix.com/css/iepngfix/ It uses the same filter, but in the context of an IE-only script that contains some fallback measures for troublesome special cases. Don't let the 15KB download size alarm you --- it's mostly demo files. The script itself is only about 2.5KB. Using the AlphaImageLoader filter in CSS for IE6 PNG transparency works well enough in many circumstances, but it can fail in certain cases. For example, it can cause trouble when a transparent PNG is used as the background for an element that contains links.

I’ve found iepngfix.htc to offer a more consistent and trouble-free solution:

http://www.twinhelix.com/css/iepngfix/

It uses the same filter, but in the context of an IE-only script that contains some fallback measures for troublesome special cases. Don’t let the 15KB download size alarm you — it’s mostly demo files. The script itself is only about 2.5KB.

]]>
By: admin http://mattsnider.com/css/two-helpful-ie-hacks/#comment-274 admin Wed, 19 Sep 2007 16:07:13 +0000 http://mattsnider.com/css/two-helpful-ie-hacks/#comment-274 Thanks Adam. Yeah, I have used the iepngfix.htc before as well. Generally it's as easy as including that file in the same folder as your CSS. I had trouble getting Tomcat to read the .htc file so I have not used it recently. However, on any LAMP server, I have never had a problem. Thanks Adam. Yeah, I have used the iepngfix.htc before as well. Generally it’s as easy as including that file in the same folder as your CSS. I had trouble getting Tomcat to read the .htc file so I have not used it recently. However, on any LAMP server, I have never had a problem.

]]>
By: joey http://mattsnider.com/css/two-helpful-ie-hacks/#comment-277 joey Mon, 24 Sep 2007 19:23:19 +0000 http://mattsnider.com/css/two-helpful-ie-hacks/#comment-277 Better to use conditional comments than hacks targeting a less compliant browser (aka IE6). It organizes your CSS and you can target specific versions as well. http://www.quirksmode.org/css/condcom.html Also who supports IE5 anyway? I only do FF, IE6/7. Better to use conditional comments than hacks targeting a less compliant browser (aka IE6). It organizes your CSS and you can target specific versions as well.

http://www.quirksmode.org/css/condcom.html

Also who supports IE5 anyway? I only do FF, IE6/7.

]]>
By: admin http://mattsnider.com/css/two-helpful-ie-hacks/#comment-278 admin Mon, 24 Sep 2007 19:48:39 +0000 http://mattsnider.com/css/two-helpful-ie-hacks/#comment-278 Joey, Conditional comments are very useful. However, practice has taught me that it is much easier to maintain 1 IE stylesheet than 2 or more. I generally use <!––[if lt IE 8]> <link rel="stylesheet" type="text/css" href="css/ie.css" /> <![endif]––> and then use the star hack to differentiate between IE 7 and 6. I don't support IE 5.5 or less, unless a client demands it. Some large corporations still use very outdated intranets. Joey,

Conditional comments are very useful. However, practice has taught me that it is much easier to maintain 1 IE stylesheet than 2 or more. I generally use

<!––[if lt IE 8]>
<link rel=”stylesheet” type=”text/css” href=”css/ie.css” />
<![endif]––>

and then use the star hack to differentiate between IE 7 and 6. I don’t support IE 5.5 or less, unless a client demands it. Some large corporations still use very outdated intranets.

]]>