Why is my page so wide in Internet Explorer?

Whenever a doctype is not set on a website, Internet Explorer reverts its Document Mode to Quirks Mode, instead of the correct IE8 (or IE7) Standards Mode, causing the Disqus embed to load wider than the page itself. This can be fixed by setting a doctype on your website.

Checking for Quirks mode

This is only necessary if you want to verify that your website is indeed causing Internet Explorer to revert to Quirks Mode; otherwise, see 'Setting a doctype' below.

  1. Open Internet Explorer
  2. Open Tools > Developer Tools
  3. In the top menu bar, check your current Document Mode (not Browser Mode).

Browser Mode and Document Mode in IE8

Setting a doctype

While any doctype will force Internet Explorer to use a Document Mode other than Quirks Mode, the W3C recommends the most up-to-date validation: <!DOCTYPE html>

So the first few lines your site's HTML might now look something like this:

HTML markup of a page with a properly-set doctype

For more information on doctypes and how to implement them, see W3Schools' HTML doctype declaration article.

Also, for additional background on doctypes and Quirks mode , we recommend Henri Sivonen's article Activating Browser Modes with Doctype.

Contact us Community Q&A

We welcome all questions, feedback and bug reports. If you're having an issue, we usually need the following information:

  • A brief description of the issue
  • Link to any page where you saw the issue
  • Screenshots that illustrate the problem - How do I take a screenshot?