I just thought I’d share a quick way to get perfectly square images everytime in the Webflow designer, regardless of the viewport size… I know some users struggle to do this without using explicit pixel sizing which isn’t ideal for responsiveness.
With this method, you can set it up once on the desktop viewport, and they will always stay square no matter what the size of the browser.
Add a Container, a Grid (make it 3 columns if you like) and add a single div into the grid
Thank you so much for this tutorial! I was having a tough time trying to get my CMS Collection wrap images to align inside the grid as the same size and this worked!
I am still trying to get my buttons at the bottom of the card to align as well. Do you have any tips for how I can do that? Right now they are basing there position off of how long the paragraph is before them.
I applied flexbox to my div with a heading, paragraph, and button inside. Then made my paragraph grow but nothing changed in my layout. Do you know anything I could check that could be preventing it from working?
You seem to have an extra div. If you want the buttons at the bottom, you can try this…
To mkae it work on all the others, just rename the Div Block class and apply it to all the other div blocks.
Thank you for the information on that area but I was trying to refer to this area, called the “Teaser-Div-Block”. It’s within a CMS collection and it has flexbox applied and stretch on the paragraph.
Hi @magicmark
I wanted to center vertical images within the square div. Could it be that your approach didn’t cover for that? Seems that adding margin: auto to all sides of the images works for me, or have I overlooked anything in your instructions?
Thanks for the tutorial, I tried to apply it to the Instagram boxes I have at the bottom of my page but they just seem to disappear. And also still become different shapes, especially when going to tablet or mobile view.