Skip to main content

Although I find the new autolayout UI extremely convoluted and overdesigned, the ‘hug/fill parent’ feature is great. However, It would be immensely helpful to have more control over how the elements fill the parent.


Currently, the only option is for the elements to fill the remaining space, but oftentimes, I need certain elements to take up a certain proportion.


Example: I need element-1 to take up 2fr (~66%) and the rest to take up 1fr (~33%). It would be a game-changer if we could use ‘fr’ units.


Framer does this beautifully and it’s vital for efficient, adaptive layout workflows:


100% agree. I am so excited for these Figma updates, but I got a little bummed when I realized we couldn’t use percentages. A bulk of my day to day is designing UI for web based applications and so percentages are everywhere.


That is “showing” the % only, not setting them. Unfortunately.


+1! this would be great for responsive forms


@JackieChui You asked for a concrete example… there we go:


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. Especially if the component got resized.


See:


Thanks for the example!

Will share it with the team.


Percent based sizing is useful in general, not just for min/max width. It is one of the most common ways of sizing things when coding layouts. Relying on Fill width and pixel sizing just isn’t capable enough, especially when you want to handoff to devs and you want them to use percent based sizing.


I would also love to use percentages because of the way the auto layout wrap works. Because the min and max aren’t flexible, I now often have to use empty spacing layers to make sure everything wraps well. It would be way easier to way:



  • Min Width: 33%

  • Max Width: 50%


Now I often have to recalculate for different screen sizes.



+1, please Figma!


Agree. Like others here I work on a web app with cards, tables, and other UI containers and elements that would benefit from percentages in Figma. Now I often have to draw fixed width drawings and math out the percentages – at least the width and height box make for quick math – but it is still a lot of work, especially if they change up at breakpoints. I can use fill on an auto layout for easy halves, thirds, quarters and other even layouts, but I find myself just always using even divisions to make my life easier in Figma when I should probably split containers by uneven percentages like 60/40 or 70/30.


I really don’t understand, how it is possible to have auto layout without the percentages. I mean, if we want to create truly responsive layouts, it’s simply impossible to do it with the absolute values (or simply assume, that all the widths should be equal). I was really surprised it wasn’t the part of the min/max and wrap update, it’s directly connected and not fully usefull without it.


+1

I really don’t understand, how it is possible to have auto layout without the percentages. I mean, if we want to create truly responsive layouts, it’s simply impossible to do it with the absolute values (or simply assume, that all the widths should be equal). I was really surprised it wasn’t the part of the min/max and wrap update, it’s directly connected and not fully usefull without it.


Absolutely need percentages.


Like the other post, definitely need to define a percentage for the width of a child element in its container. Or height. Or anything. Even spacing should be flexible – %, vw, vh, etc.


Definitely needed for responsive designs, please add this functionality Figma


This is why im looking at penpot/framer. Im sorry but ever since adobe bought Figma things just slowed right down. Im glad you eventually added variables/tokens. But its almost too little and too late. It still lacks a lot…Then we have this feature…WHICH IS MUCH NEEDED! and is not rocket science to add … the community has obviously made you aware about its need over 2.5 years ago…but alas we are just shouting into the void!


For lists and table views, I usually create components for row-items in a list. Then I stack the list items vertically to make the list. When a list has multiple “columns”, you can set cell width using a fixed-width frame for each cell. That’s great for one page size but if I stretch the row-item horizontally, I want to control how cells in the row stretch. Some may need to remain fixed-width. Some will stretch to claim the extra available horizontal space.


If there’s only one cell in the list item that stretches horizontally, setting that one cell to “fill” works because it just claims all the horizontal space available to it.


But if you have multiple columns of different widths that need to stretch, the only option for stretching the cells is to set the auto-layout cell frame to “fill”, but that makes all cells resolve to the same width. I need them to fill the horizontal space up proportionately. Column A: 20%, Column B: 30%, Column C: 50%, for example.


It would be great if the widths of horizontal auto-layout frames inside another horizontal auto-layout frame could divide the horizontal space proportionally with percentage widths.


It’s a lot easier concept than it sounds. It seems like a basic need. Maybe I’m missing something in Figma. Maybe there’s another way to do what I’m looking for?


yes, it’s required often


Yes! I googled and landed here while working on table column widths 🙂


It makes me so frustrated that this feature is not added. We want to build up our design like we would code them with HTML and CSS and for this we need the units to make it a bit responsive.


Edit: Or something like CSS GRID, to better visualise design that have odd layouts like 4 columns to 8 and so on. Its a shame, you could connect it to the existing grid. So many opportunities. Really hope this is going to be added soon.


Will this ever be resolved!!?


Agreed, this seems like a very valid use case, and is needed for at least one component in my client’s library.


Agreed, a while back I posted a similar request. See my post here:


We really need this feature,

We need to be able to set an element to “X columns” according to the column grid previously set (nb of columns, gutters and margins could be variables)

we need to be able to set a frame to “X %” of the parent


These features could help us to design more like dev, and this could be really useful for the devmode, to have a good devmode more close to the reality of HTML/CSS development.


+1 please.

It’d be amazing to be able to define how child elements to fill the parent by Fr/Percent units.


+1. Minimum character count.


Reply