After spending a while designing a website I've now decided I need to at least make it view-able in IE9 and below. I've followed examples from the below website:
https://github.com/aFarkas/html5shiv
but to no avail.
Here's how one of the sites pages looks in an up-to-date browser: http://gyazo.com/10a74b651a216d76bb677d335fa1551d
And here's how it looks in IE9 and below: http://gyazo.com/8541b263b9ed43e9d7dea9c33eafb22b
Strangely enough however, the homepage appears fine, it's just all of the others.
I implemented this code to the head of all of my html pages:
<!--[if lt IE 9]>
<script src="js/html5shiv.js"></script>
<![endif]-->
html5shiv.js being in a folder called 'js' in my project directory.
And added this CSS code the my stylesheets:
/*HTML5*/
article, aside, details,figcaption,figure,footer,header,hgroup,menu,nav,section {
display:block;
}
Even with this done, which I believe to be correct if I'm not being blind, IE9 and below don't display this site very well.
Any suggestions will be greatly welcomed.
Thank you.
I'm sure you already figured this out Charlie but in case you haven't I would try these things...
First, regarding the css:
↑ This should be included before your other css. Generally, you shouldn't need to do this as
HTML5shivalready adds these styles, but for some older browsers or ones that have javascript disabled you could add these styles. It is easier in my opinion to just includenormalize.cssin your<head>beforehand.Also, make sure
HTML5shivis being added to the head (preferably at the end). If it's loaded in the footer after page load it could cause issues like the one you describe.Your code should look something like this:
There are some known issues with html5shiv that can be found on the github page and if you still have issues you should report it here. Also, make sure you are using the latest version of the script.