Having a div named "NormalInventory" with 32 children, each measuring 85px x 85px except for one which is larger at 175px x 175px, positioned relatively and displayed inline-block creating a CSS "list". Due to the size discrepancy, there are gaps in between the smaller boxes. How can these empty spaces be filled?
Here's a screenshot of the current layout:
https://i.sstatic.net/odn5G.png
And here's an edited version using paint to show how it should look:
https://i.sstatic.net/dSjfd.png
HTML structure:
<div class="NormalInventory">
<div class="children">
...
</div>
</div>
.NormalInventory {
position: absolute;
height: 100%;
width: 100%;
.InventoryItemPlaceholder {
position: relative;
display: inline-block;
background-color: #070707E6;
left: -5px;
margin-left: 5px;
}
}