Skip to content

Instantly share code, notes, and snippets.

View joshuarule's full-sized avatar

Joshua Rule Dobson joshuarule

  • Funko
  • Tacoma, Wa
  • 16:42 (UTC -08:00)
View GitHub Profile
@visnup
visnup / lock.css
Created May 5, 2012 20:31
"lock" orientation of a website for mobile (iPad, iPhone)
/* if portrait mode is detected, rotate the entire site -90 degrees to hint rotating to landscape */
@media (orientation: portrait) {
body {
-webkit-transform: rotate(-90deg);
-moz-transform: rotate(-90deg);
-o-transform: rotate(-90deg);
-ms-transform: rotate(-90deg);
transform: rotate(-90deg);
}
}