Skip to content

Instantly share code, notes, and snippets.

@jupegarnica
Created July 4, 2013 17:16
Show Gist options
  • Save jupegarnica/5929186 to your computer and use it in GitHub Desktop.
Save jupegarnica/5929186 to your computer and use it in GitHub Desktop.
forcing web-site to show in landscape-portait mode only
#warning-message { display: none; }
@media only screen and (orientation:portrait){
#wrapper { display:none; }
#warning-message { display:block; }
}
@media only screen and (orientation:landscape){
#warning-message { display:none; }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment