View Full Version : detect ie6
ggalan
06-03-2009, 04:47 AM
what is the best way to detect ie6. then once you detect it can you have different instructions in the <body> of the document?
bluewalrus
06-03-2009, 04:59 AM
By instructions do you mean for style or the actual content?
http://www.quirksmode.org/css/condcom.html
ggalan
06-03-2009, 05:01 AM
actual content, ie6 does not support transparent png, so i would like a different layout for that vs other browsers
molendijk
06-03-2009, 12:02 PM
You can use conditional comments:
<!--[if IE 6]>
IE6-lines
<![endif]-->
<!--[if !IE]><!-->
Lines for non-IE
<!--<![endif]-->
<!--[if gt IE 6]><!-->
Lines for IE>6 and non-IE
<!--<![endif]-->
Arie Molendijk
bluewalrus
06-03-2009, 01:01 PM
You could try this http://homepage.ntlworld.com/bobosola/pnghowto.htm
or one of these
http://www.google.com/search?q=png+ie6&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:en-US:official&client=firefox-a
ggalan
06-03-2009, 05:27 PM
thank you, the fix from: http://homepage.ntlworld.com/bobosola/pnghowto.htm
<!--[if lt IE 7]>
<script defer type="text/javascript" src="pngfix.js"></script>
<![endif]-->
should this say ie6 <!--[if lt IE 7]>
should this say ie6 <!--[if lt IE 7]>
"lt" means "less than", so "lt IE7" means IE6 or earlier. However, I've usually seen it written like so:
<!--[if lte IE6]--> meaning "less than or equal to IE 6". Don't know if it would make a difference.
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.