Created
March 24, 2015 17:17
-
-
Save gunnarbittersmann/b6bd3a0f5a510541bc9c to your computer and use it in GitHub Desktop.
Flexbox too
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
| /** | |
| * Flexbox too | |
| */ | |
| html | |
| { | |
| background: white; | |
| display: flex; | |
| flex-direction: column; | |
| justify-content: center; | |
| min-height: 100%; | |
| } | |
| body | |
| { | |
| margin: auto; | |
| width: 4em; | |
| height: 4em; | |
| background: #048; | |
| } | |
| div | |
| { | |
| padding: 0.5em; | |
| font: normal 2em Helvetica; | |
| color: white; | |
| } |
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 id="div1">1</div> | |
| <div id="div2">2</div> | |
| <div id="div3">3</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","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