Bird
Raised Fist0
Figmabi_tool~20 mins

Spacing between items in Figma - Practice Problems & Coding Challenges

Choose your learning style10 modes available
Challenge - 5 Problems
🎖️
Spacing Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
❓ visualization
intermediate
2:00remaining
Adjusting spacing between dashboard cards

You have a dashboard with multiple cards arranged in a grid. You want to increase the space between these cards evenly without changing their size. Which Figma property should you adjust?

AIncrease the 'Padding' inside each card component.
BIncrease the 'Gap' value in the Auto Layout settings of the parent frame.
CAdd margin manually by inserting empty frames between cards.
DChange the 'Stroke' thickness of each card's border.
Attempts:
2 left
💡 Hint

Think about the property that controls space between items inside a container using Auto Layout.

🧠 Conceptual
intermediate
1:30remaining
Understanding spacing impact on readability

Why is consistent spacing between items important in a BI dashboard design?

AIt improves visual clarity and helps users scan information easily.
BIt makes the dashboard load faster by reducing file size.
CIt allows more data to fit on the screen by reducing gaps.
DIt changes the color contrast between items.
Attempts:
2 left
💡 Hint

Think about how spacing affects how users perceive grouped information.

❓ data_modeling
advanced
2:00remaining
Spacing in nested Auto Layout frames

You have a nested Auto Layout frame inside a parent Auto Layout frame. The parent frame has a gap of 20px, and the nested frame has a gap of 10px between its items. What is the total horizontal space between two items, one in the parent frame and one inside the nested frame?

A10px, because only the nested frame's gap applies between its items.
B30px, because the gaps add up between nested and parent frames.
C20px, because the parent frame's gap applies between its direct children only.
D0px, because nested frames ignore parent gaps.
Attempts:
2 left
💡 Hint

Consider how Auto Layout gaps apply only between direct children of a frame.

🔧 Formula Fix
advanced
2:00remaining
Fixing inconsistent spacing in a dashboard layout

You notice that the spacing between some dashboard widgets is inconsistent, even though all widgets are inside the same Auto Layout frame with a gap of 16px. Which of the following is the most likely cause?

ASome widgets have extra padding or margin inside their frames.
BThe Auto Layout gap property is set to 0px.
CThe widgets are not inside an Auto Layout frame.
DThe frame's background color is transparent.
Attempts:
2 left
💡 Hint

Think about what can add extra space inside individual widgets.

🎯 Scenario
expert
3:00remaining
Optimizing spacing for responsive BI dashboards

You are designing a BI dashboard in Figma that must look good on both desktop and mobile screens. You want the spacing between items to adjust automatically based on screen size. Which approach best achieves this?

AUse fixed pixel values for gaps and resize the frame manually for each screen size.
BUse percentage-based padding inside each item and fixed gaps in the parent frame.
CCreate separate frames for desktop and mobile with different fixed gaps.
DUse Auto Layout with 'Space Between' distribution and set minimum and maximum gap values using constraints or variants.
Attempts:
2 left
💡 Hint

Consider how Auto Layout can distribute space dynamically and how constraints or variants can help with responsiveness.

Practice

(1/5)
1. What does the Spacing between items property control in Figma's Auto Layout?
easy
A. The gap between child elements inside an Auto Layout frame
B. The padding inside each child element
C. The border thickness of the Auto Layout frame
D. The color of the background inside the frame

Solution

  1. Step 1: Understand Auto Layout frames

    Auto Layout frames arrange child elements automatically in a row or column.
  2. Step 2: Identify what spacing controls

    The Spacing between items sets the gap between these child elements, not padding or borders.
  3. Final Answer:

    The gap between child elements inside an Auto Layout frame -> Option A
  4. Quick Check:

    Spacing between items = gap between children [OK]
Hint: Spacing between items = gap between children inside Auto Layout [OK]
Common Mistakes:
  • Confusing spacing with padding inside elements
  • Thinking spacing changes border or background
  • Mixing spacing with alignment properties
2. Which of the following is the correct way to set spacing between items to 20 pixels in Figma's Auto Layout panel?
easy
A. Type 20 in the 'Spacing between items' input box
B. Set padding to 20 pixels on all sides
C. Change the frame's width to 20 pixels
D. Add a 20 pixel margin to each child element

Solution

  1. Step 1: Locate spacing input

    In Auto Layout, the 'Spacing between items' input box controls the gap between children.
  2. Step 2: Set spacing value

    Typing 20 sets the gap to 20 pixels exactly.
  3. Final Answer:

    Type 20 in the 'Spacing between items' input box -> Option A
  4. Quick Check:

    Set spacing by typing value in spacing box [OK]
Hint: Set spacing by typing number in spacing input box [OK]
Common Mistakes:
  • Confusing spacing with padding or margin
  • Trying to resize frame instead of spacing
  • Adding margin to children instead of spacing
3. Given an Auto Layout frame with three child rectangles each 50px wide, and spacing between items set to 10px, what is the total width of the frame if padding is 0?
medium
A. 180 pixels
B. 150 pixels
C. 170 pixels
D. 160 pixels

Solution

  1. Step 1: Calculate total width of children

    3 rectangles x 50px each = 150px total width.
  2. Step 2: Calculate total spacing between items

    There are 2 gaps between 3 items, each 10px, so 2 x 10px = 20px.
  3. Step 3: Add children width and spacing

    Total width = 150px + 20px = 170px.
  4. Final Answer:

    170 pixels -> Option C
  5. Quick Check:

    3x50 + 2x10 = 170 [OK]
Hint: Total width = sum of children + (count-1)*spacing [OK]
Common Mistakes:
  • Counting spacing gaps equal to number of items
  • Forgetting to add spacing gaps
  • Adding padding when it's zero
4. You set spacing between items to 15px but notice the gaps are still very small. What is the most likely cause?
medium
A. The frame has padding set that overrides spacing
B. The child elements have fixed width smaller than spacing
C. You forgot to enable Auto Layout on the frame
D. The Auto Layout direction is vertical, but you expect horizontal spacing

Solution

  1. Step 1: Understand spacing direction

    Spacing between items applies along the Auto Layout direction (horizontal or vertical).
  2. Step 2: Check Auto Layout direction

    If direction is vertical, spacing controls vertical gaps, not horizontal.
  3. Step 3: Identify mismatch

    If you expect horizontal gaps but direction is vertical, spacing won't affect horizontal gaps.
  4. Final Answer:

    The Auto Layout direction is vertical, but you expect horizontal spacing -> Option D
  5. Quick Check:

    Spacing follows layout direction [OK]
Hint: Spacing applies along layout direction only [OK]
Common Mistakes:
  • Ignoring Auto Layout direction
  • Confusing padding with spacing
  • Not enabling Auto Layout at all
5. You want to create a dashboard layout with 4 cards in a row, each 200px wide, with 30px spacing between cards and 40px padding inside the frame on left and right. What should be the total width of the Auto Layout frame?
hard
A. 880 pixels
B. 970 pixels
C. 860 pixels
D. 900 pixels

Solution

  1. Step 1: Calculate total width of cards

    4 cards x 200px each = 800px total width.
  2. Step 2: Calculate total spacing between cards

    There are 3 gaps between 4 cards, each 30px, so 3 x 30px = 90px.
  3. Step 3: Calculate total padding

    Padding on left and right = 40px + 40px = 80px.
  4. Step 4: Add all widths

    Total width = 800px + 90px + 80px = 970px.
  5. Final Answer:

    970 pixels -> Option B
  6. Quick Check:

    4x200 + 3x30 + 2x40 = 970 [OK]
Hint: Total width = cards + spacing gaps + left+right padding [OK]
Common Mistakes:
  • Counting wrong number of spacing gaps
  • Forgetting to add both left and right padding
  • Mixing padding with margin
Recommended

Ready to prove it?

Pass the test and this pattern moves unknown strong while earning +1 Grip toward your certificate.

10 questions~5 mineasy hard