.container{ display: flex; justify-content: center; gap: 2px; border: 2px solid black; width: 100%; flex-wrap: wrap; } .inner{ background-color: aqua; width: 24%; border: 2px solid black; }
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter