CSS Flex Center
display: flex;
align-items: center;
justify-content: center;
TheDutchScorpion
display: flex;
align-items: center;
justify-content: center;
display: flex;
align-items: center;
justify-content: center;
/* order: vertical, horizontal */
/* If you need to access this quickly, just search for "fc" */
.primary-nav {
display:-webkit-flex;
display:flex;
list-style-type:none;
padding:0;
justify-content:flex-end;
}
.left {
margin-right:auto;
}
align-items: flex-start | flex-end | center | baseline | stretch
.container {
display: flex;
align-items: flex-start;
}
.box.flex {
display: flex;
justify-content: center;
}
/* <div class="center">
* <div>some important stuff </div>
* </div>
*/
.center{
display: flex;
justify-content: center;
align-items: center;
}