Created
June 17, 2012 15:28
-
-
Save jackz3/2944853 to your computer and use it in GitHub Desktop.
check orientation using media query
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
@media screen and (orientation:portrait) { | |
#land{display:none;} | |
#port{width:320px; margin: 20px auto;} | |
} | |
@media screen and (orientation:landscape) { | |
#port{display:none;} | |
#land{width:90%; margin: 20px 5%;} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment