I caught a stupor at such a moment, I have several blocks in one line, each has a border of 1 px , but the trouble is, what about the place where these blocks fit, the border visually takes 2px . I want to visually all the lines were in 1px
*{ padding: 0; margin: 0; box-sizing: border-box; } .container{ display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; width: 100%; padding: 25px 0; } .item{ width: 25%; height: 100px; border: 1px solid #000; background: silver; } <div class="container"> <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 class="item"></div> <div class="item"></div> </div>