Forums
This topic is locked
Switching Doctype
Posted 30 Mar 2005 08:52:30
1
has voted
30 Mar 2005 08:52:30 Matt Bailey posted:
Is it possible to check a users browser and then switch the doctype depending on which browser they are using?I'm working on a site that displays perfectly in Firefox and Netscape using strict XHTML, but completely messes up in IE6. To get it working properly in IE6 the doctype has to be transitional HTML 4.01.
___________________________________
* Sorry... how do you do that again?... *
Replies
Replied 30 Mar 2005 18:28:18
30 Mar 2005 18:28:18 Chris Charlton replied:
Yes, I'd use Server-Side code; what <i>Server Model</i> (ASP, PHP, CF, JSP) are you using?
~ ~ ~ ~ ~ ~ ~
Chris Charlton <i>- DMXzone Manager</i>
<font size=1>[ Studio MX/MX2004 | PHP/ASP | SQL | XHTML/CSS | XML | Actionscript | Web Accessibility | MX Extensibility ]</font id=size1>
~ ~ ~ ~ ~ ~ ~
Chris Charlton <i>- DMXzone Manager</i>
<font size=1>[ Studio MX/MX2004 | PHP/ASP | SQL | XHTML/CSS | XML | Actionscript | Web Accessibility | MX Extensibility ]</font id=size1>
Replied 31 Mar 2005 00:13:56
31 Mar 2005 00:13:56 Matt Bailey replied:
PHP.
Actually, I think I was wrong in saying that the site displays perfectly in Firefox and Netscape. The only reason they display correctly is because they are switching to Quirks mode (which I guess means they won't validate) whereas IE6 is staying in Standard mode, so IE6 is kind of doing the right thing and it's my coding that's wrong... I think...
... does that make sense?
___________________________________
* Sorry... how do you do that again?... *
Actually, I think I was wrong in saying that the site displays perfectly in Firefox and Netscape. The only reason they display correctly is because they are switching to Quirks mode (which I guess means they won't validate) whereas IE6 is staying in Standard mode, so IE6 is kind of doing the right thing and it's my coding that's wrong... I think...
... does that make sense?
___________________________________
* Sorry... how do you do that again?... *