16

    Using Constraints for Responsive Resizing

    By Nitin Khatri (Senior UI/UX Designer & Educator)
    Reviewed by Sarah Miller (Principal Product Designer (Reviewer))
    Updated
    Video Lesson: 08:30
    Level: Intermediate

    Ensure your designs look great on any screen size. This lesson explains how Constraints work within frames to control element behavior during resizing.

    Complete tasks and quiz to finish this lesson.
    Tasks
    Quiz

    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

    1. Understanding the Constraints control panel
    2. Pinning elements to the Top, Bottom, Left, or Right
    3. Center and Scale behaviors explained
    4. Building a responsive navigation bar using constraints

    Key Concepts

    Responsive Constraints
    Element Pinning
    Scale vs. Fix
    Adaptive Layouts

    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

    Q: How can I practice what I learned in this lesson?

    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.

    Q: What should I do if my layout behaves differently from the walkthrough?

    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.

    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

    Prompt Builder

    Formulate AI prompt scales.

    Open Companion Tool →