Item Sizing

Hi there,

I’m building a website and was wondering if anybody could help me with some sizing issues I’m having. I need to create a scalable container or grid, where the container or each section of the grid stays as a square (where the top and bottom length is always equal to the sides but remains scalable). I can’t seem to do it and don’t know if I’m over looking something so simple.

Any help at all would be appreciated, thanks.

@gilkesollie , you don’t say on what basis you want to scale, but let’s assume it’s based on viewport width. In that case, you could define both the height and width of your container using the same vw measurement. For example, you’d set both the height and the width to 50vw.

Thank you for your reply Jim, sorry it’s taken me so long to get back to you. This appears to have solved the problem I was having so thank you very much!