<div class="block" style="background: <?php echo $color ?>;">
display: inline-block; vertical-align: top;
, там правда трабла будет с промежутками.display: flex;
и @supports {}
..div {
width: 100px;
height: 100px;
border: 3px solid red;
border-bottom: 0;
position: relative;
}
.div:after, .div:before {
position: absolute;
content: '';
width: 57px;
border-top: 3px solid red;
bottom: -11px;
}
.div:before {
left: -4px;
transform: rotate(20deg);
}
.div:after {
right: -4px;
transform: rotate(-20deg);
}
.wrapper {
width: 150px;
}
.wrapper {
width: 450px;
display: flex;
flex-direction: column;
height: 70px;
flex-wrap: wrap;
}
.wrapper {
width: 450px;
display: flex;
flex-direction: row;
flex-wrap: wrap;
}
.block:nth-child(odd) {
order: 1;
}
.block:nth-child(even) {
order: 2;
}