Grow your CSS skills. Land your dream job.

IE8 Not Recognising HTML5 (even with shiv)

  • # December 12, 2012 at 7:50 am

    Hi all,

    This is one of those really annoying posts where they may be an easy solution, but I’ve trawled through forums and tried 100 different things and had no luck.

    IE 8 isn’t applying CSS styles to HTML5 tags on a site I’ve just launched. In the past I’ve always fixed this with a shiv and/or code like:


    But for this site it doesn’t do anything, IE8 still doesn’t recognise the styles. The website is http://www.unyouth.org.au/.

    Does anyone have any ideas why this is happening? Any help would be amazing.

    Thanks so much!

    # December 12, 2012 at 7:55 am

    As far as I know, the only script you need is

    There is no need to add it if it’s not required so it should be inside a conditional statement.

    # December 12, 2012 at 8:11 am

    Thanks for the reply!

    Yeah I had it in the conditional originally, and just moved it back in but even with it in it still doesn’t apply. I was using a self-hosted shiv before too and chucked in some alerts at the start and end to see if was running and it was. It seems like the shiv is there but not working for some other reason?

    So bogged :S

    # December 12, 2012 at 10:50 am

    Dunno, looks like the HTML5 elements are rendered properly. The styles for HEADER are applied, but for ASIDE it looks like there’s something else wrong. Weird.

    # December 29, 2012 at 10:43 pm

    Ended up figuring this out – it was a SVG object that broke all the styles below it. Weird. I thought IE would just ignore the SVG if it couldn’t render it.

    Thanks for your help!

    # December 30, 2012 at 12:28 am

    Supposedly your not supposed to link to the google one says he http://zoompf.com/2012/05/html5shiv-and-serving-content-from-code-repositories

    Download it here instead and serve it locally http://code.google.com/p/html5shiv/

    # December 30, 2012 at 2:04 am

    Are you setting their display to block in your style sheet?

Viewing 7 posts - 1 through 7 (of 7 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".