Skip to main content

Allow set a percentage for "Fill container" options

  • February 6, 2023
  • 8 replies
  • 3064 views

Paula_Kietzer

Sometimes we need to make an element fit a percentage of the container instead of always having it sharing the same proportion as the other elements (For instance - 2 elements, each one of them has 50% always).

This topic has been closed for comments

8 replies

Julie_Pronzac

Would need this as well


Ioana_Ionescu

This would be great! 🫠


Dennis_N
  • Power Member
  • 181 replies
  • July 13, 2023

In general not just for fill container I would say. Together with the new max-width this would be an even more killer-feature.

I would like to set the max-width to 100% of the parents frame to avoid elements like buttons to overflow. This would allow to combine hugging with the benefits of fill-container if the content would exceed.

Vote for:


Heike_Theis

Yes please!!! This would be very helpful!


Josefin_Hakanson

This would be super helpful!


Josefin_Hakanson

There were a similar topic / idea in 2022 as well – Fill container by percentage and also discussed here Proportional auto-layout - width/height and max/min - #2 by FigmaIsBad


Brett_von_Halle

50% max-width would be super helpful. I wonder how this might be closer to code syntax though, a lot of classes reference things like β€œpan-6” where you can set an element to span 6 of the 12 columns. Max width would solve the problem, but be less consistent with how these are applied in development (using things like grid).


  • 0 replies
  • February 18, 2024

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


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings