Using Constraints for Responsive Resizing
Ensure your designs look great on any screen size. This lesson explains how Constraints work within frames to control element behavior during resizing.
Lesson Video
Lesson Content
Learning Objectives
- •Apply horizontal and vertical constraints to UI elements
- •Use 'Scale' constraints for proportional resizing
- •Combine constraints with layout grids for advanced responsiveness
- •Identify when to use constraints versus Auto Layout
What You'll Learn
- Understanding the Constraints control panel
- Pinning elements to the Top, Bottom, Left, or Right
- Center and Scale behaviors explained
- Building a responsive navigation bar using constraints
Key Concepts
Key Takeaways
- ✓Constraints tell Figma how objects should respond when their parent frame is resized.
- ✓By default, items are pinned to the Top and Left.
- ✓Constraints only work on direct children of a frame, not a group.
- ✓Mastering constraints is essential for designing multi-device interfaces.
Practice Tasks
Responsive Navigation Bar
Use constraints to ensure UI elements stay pinned to the correct boundaries.
- Create a desktop-width frame and place a 'Logo' and 'Profile' icon
- Set the Logo constraint to 'Left' and 'Center'
- Set the Profile icon constraint to 'Right' and 'Center'
- Resize the frame horizontally and confirm elements remain at the edges
Scale and Center Logic
Apply advanced resizing behaviors for background elements and centered content.
- Place an image in the center of a frame
- Apply 'Center' constraints for both horizontal and vertical axes
- Create a background rectangle and set constraints to 'Scale' / 'Scale'
- Resize the parent frame and verify the image stays centered while the background scales
Knowledge Check
Pass with 70% or higher
1. Constraints determine how an object behaves when...
2. What happens to an object set to horizontal 'Left & Right' constraints when its parent frame is widened?
3. Why would you use 'Scale' constraints instead of 'Left' or 'Right'?
4. Constraints only work when an object is placed inside...
Lesson FAQ
We highly recommend opening your own Figma workspace in a side window and repeating the steps shown in the video. Utilize the tasks checklist above for specific practice targets.
Double-check parent-child constraints and resizing values (e.g. Hug vs Fill). Ensure Auto Layout direction is correct and check the related guidebooks below for step-by-step visual references.
Lesson Resources & Connections
Prerequisites
No prerequisites required. This is a foundational starter lesson.
Related Guidebook
How to create responsive layouts in Figma using Auto Layout
Read Guidebook →How to use constraints in Figma for responsive resizing
Read Guidebook →Relevant Design Tool
Lesson Navigation
Next Lesson
Prototyping Basics in Figma