I am using the percentage of VW to set the width of an icon. I want the height to equal that, whatever it is, so that the icon is a square and not a rectangle. Is this possible?
Thanks.
I am using the percentage of VW to set the width of an icon. I want the height to equal that, whatever it is, so that the icon is a square and not a rectangle. Is this possible?
Thanks.
Hello There,
Thanks for posting in! You cannot get the exact square is you use percent. You will need a fixed value unit such as 120px to get an exact width and height.
Hope this helps.
So there is no way to tell the width to be the same value as the height?
Thanks-
Mike
Hey Mike,
Please provide the url of the page where we can find this icon so that we may be able to help you achieve what you have in mind.
Thank you in advance.
Trying to get the icons under offerings to be responsive at the same time keeping them a circles with equal height and width.
Thanks-
Mike
Hey Mike,
That is achievable. Here is the setup.


The EM unit is responsive or scalable so the width and height of your button will scale up or down depending on its container’s width. It is best that you put each of your button inside a column.
The font graphic will scale up or down based on the font size you set in Typography.
To see the actual setup, please see this screencast. To follow along, please slow the video down or pause and play.
Hope that helps.
Cool. Thanks.
You’re welcome.
This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.