flexbox alignment code example
Example 1: css flex center
display: flex;
align-items: center;
justify-content: center;
Example 2: flex align top css
align-items: flex-start | flex-end | center | baseline | stretch
.container {
display: flex;
align-items: flex-start;
}
Example 3: flex box align items
.container {
justify-items: center;
}
Example 4: flex css end
.item {
align-self:flex-start | flex-end | center | baseline | stretch;
}
Example 5: flexbox css
.container {
flex-flow: column wrap;
}
Example 6: whats the best ways to 3 x 3 perfects squares on a webpage using flexbox
.parent {
display: flex;
height: 300px;
}
.child {
width: 100px;
height: 100px;
margin: auto;
}