Search code examples
cssinternet-explorerjquery-mobilehtml5shiv

JQM layout does not work with IE9


I am developing a mobile website with JQM, but I dont seem to get it work with IE9. Layout is so different with other browsers and all elements are messed up. I am using the html5shiv, but I dont think thats the case here.

Here is what I am using:

    <link rel="stylesheet" href="http://code.jquery.com/mobile/1.2.0-alpha.1/jquery.mobile-1.2.0-alpha.1.min.css" />
    <script src="http://code.jquery.com/jquery-1.7.2.min.js"></script>
    <script src="http://code.jquery.com/mobile/1.2.0-alpha.1/jquery.mobile-1.2.0-alpha.1.min.js"></script>

And then just basic divs in HTML-markup.

URL: http://paaluttaja.elasticbeanstalk.com

I hope someone can point me to the right direction... I dont need a full solution.


Solution

  • I am missing

    <!DOCTYPE html>
    

    from beginning of the file, it solves my issues. IE seems to be only browsers who demands it to be present.