flexbox space between code example
Example 1: flexbox center and space between
.flexbox {
display: flex;
justify-content: space-between;
}
.flex-item {
margin: auto;
}
Example 2: space between flexbox
justify-content: space-between;
Example 3: flexbox space between
justify-content: flex-start | flex-end | center | space-between | space-around | space-evenly
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: 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;
}
Example 6: flexbox css
.container {
justify-content: flex-start | flex-end | center | space-between | space-around | space-evenly | start | end | left | right ... + safe | unsafe;
}