So it was fun. Fiddle
body{
margin:0;
overflow:hidden;
}
.wrapper{
transform: rotate(90deg);
transform-origin:bottom left;
position:absolute;
top:-100vw;
height:100vw;
width:100vh;
background-color:#000;
color:#fff;
overflow:auto;
}
<body>
<div class='wrapper'>
test<br />
<hr />
<div><hr /></div>
<div><div><hr /></div></div>
<div>ing</div>
</div>
</body>
Run codeHide resultI had to wrap the contents in a wrapper div, set the overflow of the body to hidden and move the object along its width .... but hey, it works.
If you're interested, yes, I set the height of the screen width and screen width. Makes its cleanliness clean.
source
share