Skip to content

Instantly share code, notes, and snippets.

@kerryChen95
Last active June 18, 2018 08:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kerryChen95/0e24840e8445189eb6a9d865ee60cc21 to your computer and use it in GitHub Desktop.
Save kerryChen95/0e24840e8445189eb6a9d865ee60cc21 to your computer and use it in GitHub Desktop.
scroll inside on rotate 90deg
/**
* The first commented line is your dabblet’s title
*/
html, body {
background: #f06;
height: 100%;
}
#ctn {
width: 100%;
height: 100%;
transform: rotate(90deg);
overflow-x: auto;
overflow-y: hidden;
}
<div id="ctn">
hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello
</div>
// alert('Hello world!');
{"view":"split-vertical","fontsize":"100","seethrough":"","prefixfree":"1","page":"all"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment