Created
September 14, 2013 15:34
-
-
Save jslegers/6562976 to your computer and use it in GitHub Desktop.
Hiding mobile specific content on IE6-8
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
/* Add the desktop-hidden class to any HTML tag that contains mobile specific content */ | |
.desktop-hidden { | |
*display:none !important; /* IE6-7 */ | |
} | |
@media \0 screen { | |
.desktop-hidden { | |
display:none !important; /* IE8 only */ | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Demo : http://jslegers.github.io/responsiveness/
Article : http://johnslegers.tumblr.com/post/61209526292/responsive-design-how-to-hide-mobile-specific-content