Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to lock device orientation using css and javascript

@media only screen and (orientation:portrait){
  body {
    height: 100vw;
    transform: rotate(90deg);
  }
}
Source by code-boxx.com #
 
PREVIOUS NEXT
Tagged: #lock #device #orientation #css #javascript
ADD COMMENT
Topic
Name
3+6 =