Skip to content

Instantly share code, notes, and snippets.

@dylanvalade
Last active September 9, 2015 16:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save dylanvalade/a4b629c24dc1ca403c73 to your computer and use it in GitHub Desktop.
Save dylanvalade/a4b629c24dc1ca403c73 to your computer and use it in GitHub Desktop.
IE 8 Compatible Bootstrap 3 Shim
<!-- 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]-->
@dylanvalade
Copy link
Author

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.

@dylanvalade
Copy link
Author

Switched to CDN source

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment