Figma Support Forum

How to define size in % relative to parent?

I am trying to create a simple progress bar master component, where I want progress to be 60% regardless of how small or wide an instance is stretched.

How would I go about this?

Hi @Slava_Bronevitskiy!

  1. Indicator Width (100%) - 40% or W × 0.6;
  2. Set Scale horizontally in the Constraints section.

That works like a charm! Thanks.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.