Skip to content

Instantly share code, notes, and snippets.

@Frithir
Created June 26, 2015 05:55
Show Gist options
  • Save Frithir/457369d6012b2654cf21 to your computer and use it in GitHub Desktop.
Save Frithir/457369d6012b2654cf21 to your computer and use it in GitHub Desktop.
CSS - This is the code responsible for the centering of content
/* This is the code responsible for the centering of content */
display: -webkit-box;
display: -moz-box;
display: -ms-flexbox;
display: -webkit-flex;
display: flex;
-webkit-flex-pack:center;
-webkit-justify-content:center;
-moz-justify-content:center;
-ms-flex-pack:center;
justify-content:center;
-webkit-flex-line-pack:center;
-ms-flex-line-pack:center;
-webkit-align-content:center;
align-content:center;
-webkit-flex-direction:column;
-moz-flex-direction:column;
-ms-flex-direction:column;
flex-direction:column;
text-align: center;
width: 200px;
height: 200px;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment