Source code

Revision control

Copy as Markdown

Other Tools

<!DOCTYPE html>
<style>
body {
width: 120px;
border: solid 3px;
}
#flex {
display: flex;
flex-wrap: wrap;
padding: 10px;
gap: 10px;
}
#flex > div {
width: 25px;
height: 25px;
background: green;
}
</style>
<div id="flex" style="width: 60px;">
<div></div>
<div></div>
<div></div>
<div></div>
</div>