The Style inspector of IE8 Developer tools shows that the @media queries have worked (respond.min.js and html5shiv) and the correct background images and div heights are taken from the css files appropriate to the @media queries
BUT ...
the Layout inspector shows a box with the wrong height. The web page itself displays the wrong background image in the wrong sized box.
The page displays properly in webkit browsers but not IE8.
It's a "Desktop first" responsive design: large.css is always loaded before small.css which is only loaded appropriate to @media query - and the background image and box IE8 chooses to display are those from large.css ...
... even though the IE8 Developer Tools' Style inspector shows the large bg image scored through and the small image url correctly chosen.
I've tried half a dozen or more CSS and JavaScript hacks to try to get IE8 to repaint the page; the DOCTYPE specifies HTML5 etc. etc. ... but still IE8 won't draw what's shown in the DOM.
[updated since original question ...]
The problem can be see at [URL edited] where, in IE8, Developer Tools you search for id="hero" when the screen size is small or medium. You'll see that:
This suggests that the respond.js is simulating the @media queries correctly and selecting the correct css file for the screen width but that IE8 is not repainting the screen after the changes have been detected.
I doubt that this is going to be an answer for everyone, and I expect there's much discussion about this elsewhere, but this is my thinking and my conclusion:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With