Skip to main content
Lee_Gi
Mar 14, 2023 6:56 PM UTC
Question

While on auto layout, is there a way to set a single component to always take up 60% of art-board's width while setting every component to be "fill container"?

So, let’s say there are two cards horizontally on landscape art-board with auto layout. Both are set to “fill container”. This makes each card to take up 50% of the art-board. I need one on the left to always take over 40% and one on the right to take over 60% of art-board’s width while both are staying “fill container” so they can be responsive.

Is there a way to achieve this?

This topic has been closed for replies.

1 reply

Haroll
Figma Ambassador
Figma Ambassador
Mar 15, 2023 8:15 AM UTC

Hi @Lee_Gi,
As of today, it is not possible to use relative value. You won’t be able to have a div of 40% unless you make the math by yourself

Figma’s Forum Ambassador