- This topic is empty.
-
AuthorPosts
-
August 20, 2014 at 1:40 pm #180037DmytryParticipant
I just wanted to add I was also having this problem, the solution for me was to make sure you add:
<!--[if lt IE 9]> <script src="http://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script> <script src="http://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script> <![endif]-->
AFTER you link your CSS NOT before.
<link rel="stylesheet" type="text/css" href="style.css" media="screen" /> <!--[if lt IE 9]> <script src="http://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script> <script src="http://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script> <![endif]-->
If your CSS is linked after the respond.js it doesn’t work!
August 29, 2014 at 6:30 am #181036mrduguoParticipantMy problem is that inline style tag css won’t work with this technical. It only with external referenced css file (with CROS header if on different domain).
September 17, 2014 at 2:31 pm #183420Franco MegoParticipantI suggest put your code in footer.php just before of </body>, to me it has worked.
Read this for explanation: http://bit.ly/1thBp95
Excuse my English, I speak spanish :)
Lucky.September 24, 2014 at 11:36 pm #184693ShahjehanParticipantThese file only works in server not in offline files for ie8, Thanks,
You can check<link rel=”stylesheet” type=”text/css” href=”style.css” media=”screen” />
<!–[if lt IE 9]>
<script src=”http://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js”></script>
<script src=”http://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js”></script>
<![endif]–>November 18, 2014 at 1:54 pm #188644carasmoParticipantRespond js does not work with css hosted somewhere else (like the CDN) AND your link to your css file must be relative, otherwise you have to make a proxy. See their docs. It ALWAYS works if the docs are followed.
December 8, 2014 at 2:40 am #190264Rishabh SanghiParticipantHello Friends,
For running page in ie8 & above, we need to add
https://css3-mediaqueries-js.googlecode.com/svn/trunk/css3-mediaqueries.js in head section. See below code:
<script type=”text/javascript” src=’https://css3-mediaqueries-js.googlecode.com/svn/trunk/css3-mediaqueries.js’></script>
<!–[if lt IE 9]>
<script type=”text/javascript” src=’https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js’></script>
<script type=”text/javascript” src=’https://oss.maxcdn.com/respond/1.4.2/respond.min.js’></script>
// JavaScript DocumentDecember 23, 2014 at 5:36 am #191485paulsmithParticipantFor one recent site putting the respond in the same place as the site (as carasmo mentions) rather than “https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js” did the trick
<div><!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries --> <!--[if lt IE 9]> <script src="js/html5shiv.min.js"></script> <script src="js/respond.min.js"></script> <![endif]--></div>
however i’ve copied this method to another site and it just doesn’t seem to work! I went back to the Bootstrap demo and this doesn’t seem to work either..
http://getbootstrap.com/examples/grid/Can anyone help?
December 23, 2014 at 7:20 am #191488paulsmithParticipantjust answer my own question in case it helps anyone else. I included the fixes as instructed in this thread..
“http://community.protoshare.com/2014/04/getting-bootstrap-cdn-work-ie8/”
don’t understand it but it worked!!March 21, 2015 at 4:37 am #198691RathiusParticipantIt’s working for me now.
I am using a local copy of respond.min.js and not linking to the CDN as has been suggested.
It would have been nice if they just had it commented in the source saying, “Hey, go download respond.min.js at the CDN listed below and make sure you upload it along with all your other js files in order for bootstrap to work correctly with IE8.”
DUH! How hard would that be? Sure would beat the hell out of searching all over the ‘Net for a solution.
Check this little screen capture.
May 22, 2015 at 11:58 am #202729Rohit701Participantmy site not working fine in IE8, here is the link http://www.9cityroofersandconstruction.com/
can you please help me ?
January 9, 2016 at 9:29 am #236554devdavidParticipantI fixed this problem by linking the bootstrap css file locally. I thought because the @media statements came from bootstrap css that that must be why respond.js was having a problem with cross domain when using CDN for bootstrap. Now I think I will load the local file for IE 8 and below and the CDN for everything else.
January 27, 2016 at 2:41 pm #237388suhongyangParticipantWe fixed the problem with 2 things:
- Host respond.js and html5shiv.js locally (we use NPM for dependency management of these scripts)
-
Load html5shiv before CSS, and respond.js AFTER CSS is loaded.
Putting respond.js after CSS was the gotcha, as it needs to know about the CSS selectors before it can apply its effects.
Hope this helps.
March 23, 2016 at 2:08 am #239712liamwheldonParticipantI found that the github example didn’t work when copied to my server. The solution I found was that the example when being tested with IE8 from XP needs 2 changes!
Replace “rawgithub.com” with “rawgit.com” (IE8/xp doesn’t like the redirect when including the css files)
Change “https” to “http” as the CDN they use uses SNI which isn’t supported in XP, so if you want to support XP users then you’ll need to cater for this! (or a less you spend a lot of money to get a dedicated IP on your CDN)
Once this was changed, all works well with the example :-) Hope this helps someone :-) Working example.html code below:
<!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <meta http-equiv=”X-UA-Compatible” content=”IE=edge”> <meta name=”viewport” content=”width=device-width, initial-scale=1?> <title>Respond JS Test Page</title> <link href="http://rawgit.com/scottjehl/Respond/master/test/test.css" rel="stylesheet"/> <link href="http://rawgit.com/scottjehl/Respond/master/test/test2.css" media="screen and (min-width: 600px)" rel="stylesheet"/> <script src="../dest/respond.src.js"></script> <!-- Respond.js proxy on external server --> <link href="http://rawgit.com/scottjehl/Respond/master/cross-domain/respond-proxy.html" id="respond-proxy" rel="respond-proxy" /> <link href="respond.proxy.gif" id="respond-redirect" rel="respond-redirect" /> <script src="respond.proxy.js"></script> </head> <body> <p>This is a visual test file for cross-domain proxy.</p> <p>The media queries in the included CSS file simply change the body's background color depending on the browser width. If you see any colors aside from black, then the media queries are working in your browser. You can resize your browser window to see it change on the fly.</p> <p id="attribute-test">Media-attributes are working too! This should be visible above 600px.</p> </body> </html>
May 18, 2016 at 2:16 pm #241849Vincent CSS LussierParticipantJoanne Masterson = Nicest Person In The World
May 18, 2016 at 3:50 pm #241852I.m.learningParticipantWhat I found out is I had to place this entire code into the head, removing any of it failed:
It looks you removed some of it, however.
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries --><!-- WARNING: Respond.js doesn't work if you view the page via file:// --><!--[if lt IE 9]><script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script><script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script><![endif]-->
As far as the comment @elvismercado , I believe it’s called “Conditional commenting.” I just heard of it when I started working with Bootstrap a few months ago.
But, IE8?
I wish 2 things: 1) they never got rid of XP {minus the security issues} 2) I never upgraded to Windows 10.
-
AuthorPosts
- The forum ‘CSS’ is closed to new topics and replies.