In Figma, when you set a frame's width to 'Hug contents', what happens when you add more elements inside the frame?
Think about a box that wraps tightly around its items.
The 'Hug contents' resizing rule makes the frame size itself exactly to fit its children. So when you add more elements, the frame grows or shrinks accordingly.
What does the 'Fill container' resizing rule do to a frame's width inside a parent frame?
Imagine a box that stretches to fill the space it is given.
The 'Fill container' rule makes the frame expand or contract to fill the entire width of its parent frame, adapting if the parent changes size.
You are designing a button inside a frame that should always be 200 pixels wide, regardless of the parent frame size or content inside. Which resizing rule should you apply to the button's width?
Think about keeping the size constant no matter what.
Using 'Fixed' width locks the button size to 200 pixels, ignoring parent size or content changes, which is perfect for consistent button sizing.
You set a frame's width to 'Fill container' inside a parent frame, but the frame width does not change when you resize the parent. What is the most likely reason?
Check if any fixed size is blocking dynamic resizing.
If a frame has a fixed width, it will not respond to 'Fill container' resizing because the fixed size takes priority.
Consider a parent frame 500 pixels wide containing a child frame set to 'Fill container' width with 20 pixels padding on each side. What will be the child frame's width?
Subtract the padding from the parent's width.
The child frame fills the parent's width minus the left and right padding (20 + 20 = 40), so 500 - 40 = 460 pixels.