/* limited support (Q1/2021: Firefox, Chrome, Safari) */
.flex-container
{
display: flex;
gap: 5px;
}
/* broad support */
.flex-item
{
margin: 5px;
/* and/or */
padding: 5px;
}
.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;}
Code Example |
---|
Css :: animations |
Css :: hide scroll bar when not needed |
Css :: icon circle css |
Css :: how to apply css when not on hover |
Css :: dropdown size based on text |
Css :: fontawesome trash icon |
Css :: rainbow text shadow animation |
Css :: repeating gradient |
Css :: border style |
Css :: matsnackbar background color |
Css :: col-md-6 bootstrap |
Css :: asp net css how to change text alignment of gridview column |
Css :: font awesome saas gem |
Css :: how to set media path and media root |
Css :: scss nesting |
Css :: change color select arrow css cf7 |
Css :: animation clip path |
Css :: material design css |
Css :: put a background image in css with absolute layout |
Css :: rem in css |
Css :: dot in image css |
Css :: pixel to inches |
Css :: image cut css |
Css :: css icons library |
Css :: css quitar el icono de lista |
Css :: abstände zwischen zeilen html |
Css :: div position by default |
Css :: background image for div in grid system bootstrap |
Css :: overlap section |
Css :: select focus none |