I’m trying to create a grid of profiles and I want the image to be a square no matter what size of image is uploaded. How do I create square image containers and have the image fill the container without changing the aspect ratio? I’ve tried to follow instructions on multiple forum posts about this but nothing seems to work for me.
I’m sure there are other methods, but I’ve always used this and I haven’t had too much of an issue. Pretty soon we’ll be able to use the aspect-ratio CSS property, but for now it’s not very highly supported: