Skip to content

Instantly share code, notes, and snippets.

@jklm313
Created July 21, 2013 18:33
Show Gist options
  • Select an option

  • Save jklm313/6049452 to your computer and use it in GitHub Desktop.

Select an option

Save jklm313/6049452 to your computer and use it in GitHub Desktop.
Untitled
*, *:before, *:after {
margin: 0;
padding: 0;
box-sizing: border-box;
position: relative;
}
html, body {
height: 100%;
}
html {
background-color: skyblue;
padding: 2%;
}
body {
background-color: white;
overflow: hidden;
}
.container {
overflow: auto;
background: red;
transform:
rotate(-90deg);
}
.container div {
height: 200px;
width: 200px;
border: 2px dashed;
border-top: 4px solid;
margin: 2%;
}
.container div:first-child {
height: 500px;
width: 500px;
transform-origin: 50%;
transform:
rotate(90deg)
}
<div class='container'>
<div></div>
<div></div>
</div>
{"view":"separate","fontsize":"100","seethrough":"","prefixfree":"1","page":"result"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment