Thursday, December 15, 2011

How to avoid Quirks mode in IE

Put this line in the first place
<head>
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
</head>


Reference:
How to avoid compatibility view and quirk mode in IE?

Put specific HTML standard in DOCTYPE tag
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">  






2 comments:

  1. I have no idea ow you found this, but I in turn have found it. I tried copypasting every DOCTYPE declaration I could find before I came across this solution. Thankyou very much, you've saved my bacons.

    ReplyDelete
  2. And now, in turn, I have found it. My bacons also can haz been saved.

    ReplyDelete