flex end code example
Example 1: css flex center
display: flex;
align-items: center;
justify-content: center;
Example 2: space between flexbox
justify-content: space-between;
Example 3: justify content
justify-content: center;
justify-content: start;
justify-content: end;
justify-content: flex-start;
justify-content: flex-end;
justify-content: left;
justify-content: right;
justify-content: normal;
justify-content: space-between;
justify-content: space-around;
justify-content: space-evenly;
justify-content: stretch;
justify-content: safe center;
justify-content: unsafe center;
justify-content: inherit;
justify-content: initial;
justify-content: unset;
Example 4: gap between two flex items
.upper
{
margin:30px;
display:flex;
flex-direction:row;
width:300px;
height:80px;
border:1px red solid;
padding:5px;
}
.upper > div
{
flex:1 1 auto;
border:1px red solid;
text-align:center;
margin:5px;
}
.upper.mc
{flex-direction:column;flex-wrap:wrap;width:200px;height:200px;}
Example 5: flex css end
.item {
align-self:flex-start | flex-end | center | baseline | stretch;
}
Example 6: css flex
.anyclass {
display:flex;
}
.anyclass {
display:flex;
flex-direction: row | row-reverse | column | column-reverse;
}
.anyclass {
justify-content: flex-start | flex-end | center | space-between | space-around | space-evenly | start | end | left | right ... + safe | unsafe;
}