Created
January 9, 2022 17:44
-
-
Save hoyangtsai/10360291e9f3c932a624900202d6b580 to your computer and use it in GitHub Desktop.
#MediaQuery #CSSHack
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
/* target IE 6 and 7 */ | |
@media screen\9 { | |
/* custom style */ | |
} | |
/* target IE 6, 7 and 8 */ | |
@media \0screen\,screen\9 { | |
/* custom style */ | |
} | |
/* target IE8 */ | |
@media \0screen { | |
/* custom style */ | |
} | |
/* target IE 8, 9 and 10 */ | |
@media screen\0 { | |
/* custom style */ | |
} | |
/* target IE 9 and 10 */ | |
@media screen and (min-width:0{{ content }}) { | |
/* custom style */ | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Found here: https://keithclark.co.uk/articles/moving-ie-specific-css-into-media-blocks/