Reputation: 1
After a lot of time spent trying to solve this issue, I'm here to ask your help.
My website does not have a doctype and is working fine with all browsers, including IE.
I know it is not correct but any DOCTYPE I put breaks the code in some point.
The fact is that my document mode is in quirks 5.5
At IE, I changed it to just quirks mode (second option in the menu) and all worked perfect.
So, besides the fact that it does not have a doctype, is there any way to change from quirks 5.5 to just quirks?
Thanks a lot!
Upvotes: 0
Views: 270
Reputation: 168853
(Posting an answer derived from my comments above, since OP indicates that it helped him solve the problem)
You should not use Quirks mode. There are too many issues around it to make it a sensible option under any circumstances.
And it really isn't that difficult to convert away from Quirks mode.
Add a DOCTYPE
(you already know about this).
<!DOCTYPE html>
This will tell the browser to use standards mode.
Add the following line to your CSS:
* {box-sizing:border-box;}
This is the standards-compliant way of emulating the main thing in quirks mode that causes layout difference, which is the different box model that quirks mode used.
There may be a few other minor tweaks you need to do, but box-sizing
should deal with the vast majority of the layout changes you get when you move away from quirks mode.
Hope that helps.
Upvotes: 1