Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSS

bolock rotating the screen on your website with css

@media screen and (min-width: 320px) and (max-width: 767px) 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: #bolock #rotating #screen #website #css
ADD COMMENT
Topic
Name
8+7 =