Skip to content

Instantly share code, notes, and snippets.

@horacioh
Created October 22, 2013 00:34
Show Gist options
  • Save horacioh/7093335 to your computer and use it in GitHub Desktop.
Save horacioh/7093335 to your computer and use it in GitHub Desktop.
A Pen by Horacio Herrera.
.container
.center-block
@import "compass";
html,
body
{
width: 100%;
height: 100%;
margin: 0;
padding: 0;
}
.container
{
display: -webkit-flex;
display: -moz-flex;
display: flex;
-webkit-flex-flow: row wrap;
-moz-flex-flow: row wrap;
flex-flow: row wrap;
-webkit-justify-content: center;
-moz-justify-content: center;
justify-content:center;
-webkit-align-content: center;
align-content: center;
height: 100%;
background: #cdcdcd;
.center-block
{
width: 200px;
padding: 24px;
background: #ebebeb;
height: 200px;
-webkit-align-content: center;
align-content: center;
display: -webkit-flex;
display: -moz-flex;
display: flex;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment