grid div images start from the 2nd column
Hi all,
I'm trying to add images using div grid. Here's the code I used:
.container {
display: grid;
grid-column-start: col 0;
grid-gap: 5px;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
grid-template-rows: repeat(auto-fit, 1fr);
}
<div class="container">
<div><img src="images/project-category-1-650x490.jpg"/></div>
<div><img src="images/project-category-2-650x490.jpg"/></div>
<div><img src="images/project-category-3-650x490.jpg"/></div>
<div><img src="images/project-category-4-650x490.jpg"/></div>
<div><img src="images/project-category-5-650x490.jpg"/></div>
<div><img src="images/project-category-6-650x490.jpg"/></div>
</div>
the problem is that the first row first column is empty and the images start filling the grid from the second column. What am I doing wrong?
