i have grid container with 3 columns. However I only have 5 contents.
right now it looks like this:
| 1 | 2 | 3 |
| 4 | 5 |
I want to center the two remaining bottom div contents:
| 1 | 2 | 3 |
| 4 | 5 |
Is this achievable or should I just create separate column for that?
.container {
display: grid;
grid-template-columns: repeat(3, 1fr);
grid-gap: 5px;
}
span {
border: 1px solid black;
}
<div class="container">
<span>1</span>
<span>2</span>
<span>3</span>
<span>4</span>
<span>5</span>
</div>