what is the best way to detect ie6. then once you detect it can you have different instructions in the <body> of the document?
what is the best way to detect ie6. then once you detect it can you have different instructions in the <body> of the document?
By instructions do you mean for style or the actual content?
http://www.quirksmode.org/css/condcom.html
actual content, ie6 does not support transparent png, so i would like a different layout for that vs other browsers
You can use conditional comments:Arie MolendijkCode:<!--[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]-->
Last edited by molendijk; 06-03-2009 at 12:08 PM. Reason: Correction
You could try this http://homepage.ntlworld.com/bobosola/pnghowto.htm
or one of these
http://www.google.com/search?q=png+i...ient=firefox-a
thank you, the fix from: http://homepage.ntlworld.com/bobosola/pnghowto.htm
should this say ie6 <!--[if lt IE 7]>HTML Code:<!--[if lt IE 7]> <script defer type="text/javascript" src="pngfix.js"></script> <![endif]-->
Bookmarks