Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
CSS
how to lock device orientation using css and javascript
Matthew Mason
Programming language:
CSS
2021-05-07 04:32:31
0
Q:
how to lock device orientation using css and javascript
Catidew
Code:
CSS
2021-05-04 02:35:43
@media only screen and (orientation:portrait){ body { height: 100vw; transform: rotate(90deg); } }
2
Tags
java
javascript
using
css
device
how
Related
image orientation css
css device orientation
how to change css using javascript
javascript modify css
detect portrait landscape css
javascript change css opacity duration
New to Communities?
Join the community