?What am I missing or need to adjust so my 6 grid images don’t cover the other images when screen size is changed?
Here is my styling for images and the grid:
img {
width: 200px;
max-width: 100%;
height: auto; /* Changing the height to auto */
aspect-ratio: 1/1; /* Setting the aspect ratio of the images */
}
Allow the height to be more flexible based on the width of the images. You can try adjusting the height to be a percentage of the width using aspect ratio techniques.