Skip to content

Instantly share code, notes, and snippets.

@wrumsby
Last active December 15, 2015 02:21
Show Gist options
  • Save wrumsby/f450eaea7d40f623c55f to your computer and use it in GitHub Desktop.
Save wrumsby/f450eaea7d40f623c55f to your computer and use it in GitHub Desktop.
FLEXBOX!!!
/**
* FLEXBOX!!!
*/
body {
background-color: #fff;
color: #333;
font-family: sans-serif;
}
.box {
border: 1px solid #333;
margin: 10px;
height: 300px;
width: 300px;
}
.flexbox {
display: flex;
justify-content: center;
}
.thing {
background-color: yellow;
padding: 4px;
}
.block {
display: block;
text-align: center;
}
<!-- content to be placed inside <body>…</body> -->
<div class="box flexbox">
<span class="thing">Thing</span>
</div>
<div class="box">
<span class="thing block">Thing</span>
</div>
// alert('Hello world!');
{"view":"split","fontsize":"100","seethrough":"","prefixfree":"1","page":"html"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment