0
0
Figmabi_tool~20 mins

Resizing rules (hug, fill, fixed) in Figma - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Resizing Rules Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
Understanding the 'Hug' Resizing Rule

In Figma, when you set a frame's width to 'Hug contents', what happens when you add more elements inside the frame?

AThe frame width automatically adjusts to fit the total width of its contents.
BThe frame width stays fixed and does not change regardless of content size.
CThe frame width stretches to fill the parent container's width.
DThe frame width shrinks to zero and hides the contents.
Attempts:
2 left
💡 Hint

Think about a box that wraps tightly around its items.

🧠 Conceptual
intermediate
2:00remaining
Behavior of the 'Fill' Resizing Rule

What does the 'Fill container' resizing rule do to a frame's width inside a parent frame?

AIt hides the frame and its contents.
BIt fixes the frame width to a specific pixel value regardless of the parent size.
CIt shrinks the frame width to fit only the content inside it.
DIt sets the frame width to match the width of its parent container, adjusting dynamically.
Attempts:
2 left
💡 Hint

Imagine a box that stretches to fill the space it is given.

🎯 Scenario
advanced
2:00remaining
Choosing Resizing Rules for Responsive Design

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?

ASet width to 'Hug contents' so it adjusts to the text inside.
BSet width to 'Fill container' so it stretches with the parent frame.
CSet width to 'Fixed' with 200 pixels to keep it constant.
DSet width to 'Fill container' and add padding to control size.
Attempts:
2 left
💡 Hint

Think about keeping the size constant no matter what.

🔧 Formula Fix
advanced
2:00remaining
Why Does the Frame Not Resize as Expected?

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?

AThe parent frame is set to 'Hug contents', so it cannot resize.
BThe frame has a fixed width set, which overrides 'Fill container'.
CThe frame is set to 'Hug contents' instead of 'Fill container'.
DThe frame is locked and cannot be resized.
Attempts:
2 left
💡 Hint

Check if any fixed size is blocking dynamic resizing.

visualization
expert
2:00remaining
Predict the Frame Width After Resizing

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?

A460 pixels
B500 pixels
C540 pixels
D480 pixels
Attempts:
2 left
💡 Hint

Subtract the padding from the parent's width.