Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSS

screen orientation css

@media screen and (min-width: 0px) and (max-width: 1204px) and (orientation: landscape) {
  html {
    transform: rotate(-90deg);
    transform-origin: left top;
    width: 100vh;
    overflow-x: hidden;
    position: absolute;
    top: 100%;
    left: 0;
  }
}
 
PREVIOUS NEXT
Tagged: #screen #orientation #css
ADD COMMENT
Topic
Name
6+1 =