Site Will Not Use CSS Correctly In IE10 RRS feed

  • Question

  • User-1499175087 posted

    I am making the move from using an editor like Dreamweaver and Expression Web to writing in HTML5 with WebMatrix.

    I am opening a folder in WebMatrix that contains the website that will be served via IIS 8 on that server. (this site will eventually go to the web but working on it locally).

    If I edit in WebMatrix and then right click the HTML file and choose view in browser, via IIS 8 Express, it will view just fine, with CSS formatting and all., using IE 10.

    If I view the remote location (from the IIS 8 server), it will not contain all of the formatting in the stylesheet...basically just the background color and the alignment for the banner. Same goes for it I simply open the HTML file from explorer on my desktop,

    However, Google Chrome will view the remote site with all CSS formatting.

    If I press F12 in IE 10 and choose IE 8 compatability, it will work from the remote server.

    What's goin on here?


    Friday, June 21, 2013 11:38 AM


  • User-1585449306 posted

    Sometime you have to "force" the compatibility on your server.

    Add this header into your website config: name -> X-UA-Compatible & value -> IE=8.

    Hope this will solve your problem.

    • Marked as answer by Anonymous Tuesday, September 28, 2021 12:00 AM
    Thursday, June 27, 2013 8:24 PM