add space between flex items
.flex-gap {
display: inline-flex;
flex-wrap: wrap;
}
.flex-gap > div {
margin: 6px; /* HERE WE ADD THE SPACE */
}.upper
{
margin:30px;
display:flex;
flex-direction:row;
width:300px;
height:80px;
border:1px red solid;
padding:5px; /* this */
}
.upper > div
{
flex:1 1 auto;
border:1px red solid;
text-align:center;
margin:5px; /* and that, will result in a 10px gap */
}
.upper.mc /* multicol test */
{flex-direction:column;flex-wrap:wrap;width:200px;height:200px;}
Also in CSS:
- How do you change the font colour in CSS?
- add space between flex items
- how to change the height of an image in css
- button color for black background html css
- how to wrap text in div css
- css limit text length
- css transparent background color
- css remove number input arrows
- css color gradient background full height
- how to write css in html
- svg to css converter
- changong text color css
- css margin
- hr css mdn
- disable scroll css
- css text align center
- css background image fit
- react exact path highlight
- common css media queries
- select second element of type css
- div scrollbar style
- make the first item at the very top of the screen
- first-child
- install requirements.txt in pip command