Skip to content

Instantly share code, notes, and snippets.

@haggen
Created March 17, 2015 16:12
Show Gist options
  • Save haggen/58c5250b03347f8dd4c1 to your computer and use it in GitHub Desktop.
Save haggen/58c5250b03347f8dd4c1 to your computer and use it in GitHub Desktop.
CSS toolbar spacing using Flex
/**
* 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;
}
<div class="row">
<div class="cell">One</div>
<div class="cell">Two</div>
<div class="cell">Three</div>
<div class="cell">Four</div>
</div>
// alert('Hello world!');
{"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