Skip to content

Instantly share code, notes, and snippets.

@khripunovpp
Last active February 13, 2019 08:22
Show Gist options
  • Save khripunovpp/dc85191ff55c0b9ce688e384fb8df1f3 to your computer and use it in GitHub Desktop.
Save khripunovpp/dc85191ff55c0b9ce688e384fb8df1f3 to your computer and use it in GitHub Desktop.
IE conditional stylesheet
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
/* IE10+ CSS */
}
@supports (-ms-ime-align:auto) {
/* IE Edge 12+ CSS */
}
For IE 9 and lower, load a conditional stylesheet:
<!--[if IE]>
<link rel="stylesheet" type="text/css" href="ie.css" />
<![endif]-->
var isIE = /*@cc_on!@*/false || !!document.documentMode;
var isEdge = /Edge\/\d./i.test(navigator.userAgent);
<!--[if IE]>
style.
.instagram {
display: none
}
<![endif]-->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment