A Pen by Horacio Herrera on CodePen.
Created
October 22, 2013 00:34
-
-
Save horacioh/7093335 to your computer and use it in GitHub Desktop.
A Pen by Horacio Herrera.
This file contains hidden or 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
.container | |
.center-block |
This file contains hidden or 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
@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