Skip to content

Instantly share code, notes, and snippets.

@gunnarbittersmann
Created March 24, 2015 17:17
Show Gist options
  • Select an option

  • Save gunnarbittersmann/b6bd3a0f5a510541bc9c to your computer and use it in GitHub Desktop.

Select an option

Save gunnarbittersmann/b6bd3a0f5a510541bc9c to your computer and use it in GitHub Desktop.
Flexbox too
/**
* Flexbox too
*/
html
{
background: white;
display: flex;
flex-direction: column;
justify-content: center;
min-height: 100%;
}
body
{
margin: auto;
width: 4em;
height: 4em;
background: #048;
}
div
{
padding: 0.5em;
font: normal 2em Helvetica;
color: white;
}
<div id="div1">1</div>
<div id="div2">2</div>
<div id="div3">3</div>
// 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