Make grid container like having margin-top
Here my grid item (
.box
) are overflowing to the top-side of the grid container (.wrapper
).
The problem is I don't want the .box
looks overlapping with the .wrapper
previous sibling (.first-item
).
One thing I can do to solve this is with adding some pixels for margin-top
to the grid-container.
But is there another way so the spacing can be dynamic to the height of overflowing .box
?
HTML:
CSS:
1 Reply
Most likely due to the fixed height on your .box