CSS, Web, Web Development, Layout.
appears, it is not difficult to achieve such an effect: body { padding: 1vh; } .flex__container { display: flex; flex-wrap: wrap; gap: 2vh; width: 100%; } .flex__item { flex: 0 1 calc((100vw - 8vh) / 4); } The effect is as follows: In a CSS Grid layout, you can use gap directly: body { padding: