To make your divs perfectly square with a ratio of 1:1 and retain their square shape when resizing responsively in Webflow, you can follow these steps:
1. Start by creating a div element on your Webflow canvas. Give it a class name to target it specifically.
2. Set the width and height properties of the div to be the same value. For example, if you want your square div to be 200 pixels in width and height, set both the width and height properties to 200px.
3. By default, Webflow applies width and height properties in pixels, which makes the div dimensions fixed and not responsive. To make the div resize proportionally and maintain its square shape, you'll need to use a percentage value for the width and padding-bottom.
4. Set the width property of the square div to a percentage value equal to the desired aspect ratio. In this case, since you want a 1:1 ratio, set the width to 100%.
5. Next, apply the padding-bottom property to the square div. Set it to the same percentage value as the width. This creates space at the bottom of the div relative to its width, effectively making it square.
6. Once you've set the width and padding-bottom, you can further customize the div's appearance using other CSS properties or styles.
7. Test and preview your square div in different viewport sizes to ensure it maintains its square shape as you resize responsively.
By following these steps, you'll be able to create divs that are perfectly square, with a ratio of 1:1, and retain their square shape when resizing responsively in Webflow.