Skip to content

Instantly share code, notes, and snippets.

@joshhumble
Created December 4, 2012 19:12
Show Gist options
  • Save joshhumble/4207639 to your computer and use it in GitHub Desktop.
Save joshhumble/4207639 to your computer and use it in GitHub Desktop.
The Box-Ordinal-Group and Flexbox
/**
* 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;
}
<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>
// alert('Hello world!');
{"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