Understand how to use absolute positioning inside Auto Layout frames in Figma to create flexible, well-structured dashboards with overlapping or fixed-position elements.
Absolute positioning within Auto Layout in Figma - Dashboard Guide
| Month | Sales | Profit |
|---|---|---|
| January | 100 | 30 |
| February | 150 | 50 |
| March | 200 | 70 |
| April | 180 | 60 |
| May | 220 | 80 |
- KPI Card: Displays Total Sales with formula
SUM(Sales)= 850 - Bar Chart: Shows monthly Sales bars from January to May
- Profit Overlay Box: A small box positioned absolutely inside the Auto Layout frame showing Total Profit
SUM(Profit)= 290, overlapping top-right corner - Sales Table: Lists Month, Sales, and Profit in a simple table
Absolute Positioning Detail: The Profit Overlay Box uses absolute positioning inside the Auto Layout frame so it stays fixed at the top-right corner regardless of other content resizing.
+--------------------------------------------------+ | +----------------+ +--------------------------+ | | | KPI Card | | Bar Chart | | | | (Total Sales) | | | | | +----------------+ +--------------------------+ | | | | +----------------------------------------------+ | | | Sales Table | | | +----------------------------------------------+ | | | | +----------------+ | | | Profit Overlay | | | | (Total Profit) | | | +----------------+ | +--------------------------------------------------+
The Profit Overlay box is absolutely positioned inside the Auto Layout container, overlapping the top right area visually but not affecting layout flow.
Adding a filter for Month updates the Bar Chart and Sales Table to show only selected months. The KPI Card and Profit Overlay recalculate totals dynamically based on filtered data. The absolute positioning ensures the Profit Overlay stays fixed visually regardless of content changes.
If you add a filter to show only March and April, which components update their data display?
- Bar Chart updates to show only March and April sales bars.
- Sales Table shows only March and April rows.
- KPI Card recalculates Total Sales for March and April (200 + 180 = 380).
- Profit Overlay recalculates Total Profit for March and April (70 + 60 = 130).
The absolute positioning of the Profit Overlay box does not change; it remains fixed visually.
Practice
Solution
Step 1: Understand Auto Layout behavior
Auto Layout arranges items in a flow, either horizontally or vertically.Step 2: Effect of absolute positioning
Absolute positioning places an item at a fixed spot inside the frame, ignoring the flow.Final Answer:
It places an item exactly where you want, ignoring the layout flow. -> Option AQuick Check:
Absolute positioning = fixed spot inside Auto Layout [OK]
- Thinking absolute positioning resizes items automatically
- Confusing absolute with relative positioning
- Assuming absolute items affect layout flow
Solution
Step 1: Locate absolute positioning option
In Figma, absolute positioning is enabled by selecting the layer inside an Auto Layout frame and checking 'Absolute Positioning' in the right properties panel.Step 2: Verify other options
Detaching removes the layer from Auto Layout, dragging outside removes it from the frame, and frame direction cannot be set to 'Absolute'.Final Answer:
Select the layer and check 'Absolute Positioning' in the right panel. -> Option BQuick Check:
Enable absolute positioning via right panel checkbox [OK]
- Trying to detach layer instead of enabling absolute positioning
- Dragging layer outside frame to position absolutely
- Looking for 'Absolute' direction in frame settings
Solution
Step 1: Understand absolute positioning effect
Absolute positioning places the item at fixed coordinates inside the frame, ignoring the vertical stack flow.Step 2: Analyze the position values
Top=10px and left=20px means the item is placed 10 pixels from the top and 20 pixels from the left inside the frame, overlapping other items.Final Answer:
The middle item overlaps others at position (20px, 10px) inside the frame. -> Option CQuick Check:
Absolute positioned item = fixed overlap location [OK]
- Assuming absolute item shifts flow items down
- Thinking absolute item is removed from frame
- Believing layout direction changes automatically
Solution
Step 1: Check absolute positioning setting
If the layer does not move with X and Y changes, it likely means absolute positioning is not enabled.Step 2: Verify other causes
Selection issues, frame type, or locking can cause problems, but the key cause for no movement on X/Y is missing absolute positioning.Final Answer:
The 'Absolute Positioning' checkbox is not enabled. -> Option AQuick Check:
Enable absolute positioning to move layer by X/Y [OK]
- Forgetting to enable absolute positioning
- Assuming locked layers ignore X/Y changes
- Confusing frame type with positioning behavior
Solution
Step 1: Understand badge positioning inside button
The badge should be inside the button to move with it and positioned absolutely to fix at top-right.Step 2: Use absolute positioning with top and right
Enabling absolute positioning and setting top=0 and right=0 places the badge exactly at the button's top-right corner.Final Answer:
Place the badge inside the button and enable absolute positioning with top=0 and right=0. -> Option DQuick Check:
Badge inside button + absolute top-right = fixed corner [OK]
- Placing badge outside frame losing alignment
- Using padding instead of absolute positioning
- Detaching button unnecessarily
Ready to prove it?
Pass the test and this pattern moves unknown
