Skip to content

Instantly share code, notes, and snippets.

@FrankFang
Last active December 13, 2015 21:09
Show Gist options
  • Save FrankFang/4975625 to your computer and use it in GitHub Desktop.
Save FrankFang/4975625 to your computer and use it in GitHub Desktop.
box-flex
.main {
display: -moz-box; /* Firefox */
display: -webkit-box; /* Safari and Chrome */
display: box;
width: 100%;
height: 40rem;
}
.main>nav {
display: -moz-box; /* Firefox */
display: -webkit-box; /* Safari and Chrome */
display: box;
min-width: 4rem;
border: 1px solid green;
}
.main>.todo-list {
-moz-box-flex: 2.0; /* Firefox */
-webkit-box-flex: 2.0; /* Safari and Chrome */
box-flex: 2.0;
border: 1px solid blue;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment