Last active
September 9, 2015 16:34
-
-
Save dylanvalade/a4b629c24dc1ca403c73 to your computer and use it in GitHub Desktop.
IE 8 Compatible Bootstrap 3 Shim
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Force older Internet Explorer to avoid compatibility mode --> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<!-- Include HTML5 Shiv and Respond.js to IE 8 and earlier | |
https://github.com/aFarkas/html5shiv/blob/master/dist/html5shiv.min.js | |
https://github.com/scottjehl/Respond/blob/master/dest/respond.min.js --> | |
<!-- Include after bootstrap.js | |
HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries --> | |
<!-- Updated to use CDN --> | |
<!--[if lt IE 9]> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.3/html5shiv.min.js"></script> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/respond.js/1.4.2/respond.min.js"></script> | |
<![endif]--> |
Switched to CDN source
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It's also worth noting that an older Windows computer running IE8 may have a low resolution so you might need to reduce your column classes from .col-md-* to .col-sm-* or .col-xs-* to match the pixel density and screen resolution.