I’m trying to code this site (keyword trying) and I’m trying to figure out how to remove this shaded 2px gray border the extends across the the inside of the IE9 window (at least the top, left and bottom). My margins are set to zero, so all my page elements go to the very edge of the page, but with IE9, they stop at this gray border. I have not include any code in my html to have a 2px gray border around the edge of the browser.
I don’t know why this is happening in IE9, and seemingly only my webpage (other ones don’t seem to have it), but it’s messing up the formatting and I really need to figure out how to remove it.
Thanks!
You aren’t specifying a doctype, as made evident by the comment on the first line:
Because of this, IE9 goes into “quirks mode”. Add a proper doc type and it should go back into standards mode and remove the annoying grey borders. You can test this is the issue by opening up the developer tools (F12), and change the document mode from Quirks Mode to IE9 standards.
Example HTML5 doctype: