I'm working with css grid. I'm new to this. I have 5 elements and 6 columns. But how to arrange the last 2 columns in center? Here is the code
.points {
display: grid;
grid-template-columns: repeat(3, 1fr);
grid-column-gap: 30px;
grid-row-gap: 30px;
}
<div class="points">
<div class="point">
<h2><img src="images/experience-5.png" alt=""></h2>
<h3>Text</h3>
</div>
<div class="point">
<h2><img src="images/experience-5.png" alt=""></h2>
<h3>Text</h3>
</div>
<div class="point">
<h2><img src="images/experience-5.png" alt=""></h2>
<h3>Text</h3>
</div>
<div class="point">
<h2><img src="images/experience-5.png" alt=""></h2>
<h3>Text</h3>
</div>
<div class="point">
<h2><img src="images/experience-5.png" alt=""></h2>
<h3>Text</h3>
</div>
</div>
Example
If you have to use grids, this is a way :)
Here is the same in flex :)