Last active
November 2, 2015 03:45
-
-
Save oliverzy/4bda3a281f33e4582e36 to your computer and use it in GitHub Desktop.
Untitled
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| html, body { | |
| width: 100%; | |
| min-height: 100%; | |
| max-height: 100%; | |
| display: flex; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <div style="background: red; | |
| color: white; | |
| flex: 1; | |
| display: flex; | |
| flex-direction: column;"> | |
| <header style="height: 60px;">header</header> | |
| <section style="flex: 1; overflow: auto;"> | |
| <div style="height: 1000px; | |
| overflow-x: hidden; | |
| overflow-y: auto;"> | |
| content | |
| </div> | |
| </section> | |
| <footer style="height: 40px;">footer</footer> | |
| </div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // alert('Hello world!'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| {"view":"split-vertical","fontsize":"100","seethrough":"","prefixfree":"","page":"html"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment