https://codepen.io/anon/pen/robmxp
.items { display: flex; justify-content: space-between; flex-wrap: wrap; } .item { width: 48%; height: 40px; ; background: red; margin-bottom: 10px; } .item:nth-child(1) { height: 30px; } .item:nth-child(2) { height: 50px; } .item:nth-child(3) { height: 100px; } .item:nth-child(4) { height: 80px; } <div class="items"> <div class="item"></div> <div class="item"></div> <div class="item"></div> <div class="item"></div> <div class="item"></div> <div class="item"></div> </div> How to make the FLEX elements have a vertical distance between them at exactly 10px , and not adapt to the neighboring element as an example.