Created
March 17, 2015 16:12
-
-
Save haggen/58c5250b03347f8dd4c1 to your computer and use it in GitHub Desktop.
CSS toolbar spacing using Flex
This file contains 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
/** | |
* CSS toolbar spacing using Flex | |
*/ | |
* { | |
padding: 0; | |
margin: 0; | |
} | |
.row { | |
display: flex; | |
margin: 1em; | |
padding: 1em; | |
outline: 1px dashed crimson; | |
} | |
.cell { | |
outline: 1px dashed mediumseagreen; | |
padding: 1em; | |
} | |
.cell.separator { | |
flex-grow: 1; | |
} |
This file contains 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 class="row"> | |
<div class="cell">One</div> | |
<div class="cell">Two</div> | |
<div class="cell">Three</div> | |
<div class="cell">Four</div> | |
</div> |
This file contains 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 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":"80","seethrough":"","prefixfree":"1","page":"all"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment