Created
December 4, 2012 19:12
-
-
Save joshhumble/4207639 to your computer and use it in GitHub Desktop.
The Box-Ordinal-Group and Flexbox
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
/** | |
* The Box-Ordinal-Group and Flexbox | |
*/ | |
.box { | |
overflow:hidden; | |
display:box; | |
display:-ms-box; | |
display:-moz-box; | |
display:-webkit-box; | |
} | |
.one { | |
background:red; | |
box-ordinal-group:4; | |
-ms-box-ordinal-group:4; | |
-moz-box-ordinal-group:4; | |
-webkit-box-ordinal-group:4; | |
} | |
.two {background:green; | |
box-ordinal-group:2; | |
-ms-box-ordinal-group:2; | |
-moz-box-ordinal-group:2; | |
-webkit-box-ordinal-group:2; | |
} | |
.three { | |
background:blue; | |
box-ordinal-group:3; | |
-ms-box-ordinal-group:3; | |
-moz-box-ordinal-group:3; | |
-webkit-box-ordinal-group:3; | |
} | |
.four | |
{ | |
background:grey; | |
box-ordinal-group:1; | |
-ms-box-ordinal-group:1; | |
-moz-box-ordinal-group:1; | |
-webkit-box-ordinal-group:1; | |
} | |
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
<body> | |
<div class="box"> | |
<div class="one">Hello!</div> | |
<div class="two">Hello!</div> | |
<div class="three">Hello!</div> | |
<div class="four">Hello!</div> | |
</div> | |
</body> |
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