Search code examples
csshtmlstylessemantic-markup

Can't style HTML5 elements in IE (despite shiv and display:block)


I can't seem to work out what's missing. All the affected elements have display:block

Example style for the header element:

header
{
    width: 923px;
    height: 55px;
    background: #395168;
    margin-top: 25px;
}

Solution

  • Solved the issue. What i did was that i put the script-link under the stylesheet link and suddenly IE 6-8 applied my styles.

    <link rel="stylesheet" href="styles/style.css" type="text/css">
    
    <!--[if lt IE 9]>
    <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]-->
    

    Thank you so much for trying to help me :)