Your page operates in quirks mode in IE.
To prevent Quirks mode, you must add a doctype to the document. I recommend using doctype HTML5. Add at the top of your code at the top of your <html> :
<!DOCTYPE html>
The problem is resolved.
Quirks mode is an obsolete rendering mode that supports IE for backward compatibility with IE5.5. In fact, there is no need for any page to support it, so it is recommended that you have a valid doctype for all sites.
You can use any of the listed on this page (although if your site is not xhtml, I donβt think that I would avoid strict and transitional xhtml doctrines).
source share