I'm facing an issue where the grid cells do not move closer together as I resize the window, instead they just stay in their place. I want to achieve a similar layout to . To share my project code, I have uploaded it on codepen: https://codepen.io/Alessandro-Garcia/pen/RwqNaPq
The following code manages the grid:
main {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(589.19px, auto));
gap: 0;
overflow-x: hidden;
justify-items: center;
align-items: center;
}
And here's the code for the individual grid cells:
article{
margin: auto;
}