Contact Us

If you still have questions or prefer to get help directly from an agent, please submit a request.
We’ll get back to you as soon as possible.

Please fill out the contact form below and we will reply as soon as possible.

  • Contact Us
  • Home
  • Figma Design – Figma Learn
  • Create designs
  • Work with layers

Apply constraints to define how layers resize

Written by Figma Man

Updated at June 19th, 2025

Contact Us

If you still have questions or prefer to get help directly from an agent, please submit a request.
We’ll get back to you as soon as possible.

Please fill out the contact form below and we will reply as soon as possible.

  • Administration – Figma Learn
    Manage files and projects Manage a team Manage your account Manage a Figma organization Manage Enterprise plan settings and permissions Billing Manage Figma in a school
  • Figma Design – Figma Learn
    Create prototypes Import and export Create designs Tour the interface Dev Mode Work together in files Build design systems Figma Draw
  • Get started – Figma Learn
    Set up your account Layers 101
  • FigJam – Figma Learn
    Import and export Run meetings Work on boards Tour the interface
  • Community – Figma Learn
    Explore the Community Creator tools and resources
  • Help – Figma Learn
    Troubleshoot Common questions Work with support
  • Work across Figma – Figma Learn
    Figma AI Work across Figma
  • Courses, tutorials, projects – Figma Learn
    Courses Projects
  • Figma Slides – Figma Learn
    Create and edit slides Present slide decks Tour the interface Import and export
  • Figma Buzz – Figma Learn
    Templates in Figma Buzz Create and edit assets in Figma Buzz Overview
  • Figma Make – Figma Learn
    Tour the interface Work with Figma Make
  • Figma Sites – Figma Learn
    Design a site Create webpages and breakpoints Make your site interactive Preview and publish a site Tour the interface
+ More

Table of Contents

Horizontal and vertical constraints Horizontal Vertical Apply constraints to a layer Ignore constraints

Who can use this feature

Available on all plans.

Anyone with can edit access can apply and edit constraints.

Constraints tell Figma how layers should respond when you resize their frames. This helps you to control how designs look across different screen sizes and devices.

You can check out the video below, or continue reading to find out more.

Horizontal and vertical constraints

You can apply constraints along both the x (horizontal) and y (vertical) axis.

We set a layer's constraints to Top and Left by default.

Horizontal

Horizontal constraints define how a layer behaves, as you resize the frame along the x axis.

  • Left maintains the layer’s position, relative to the left side of the frame.
  • Right maintains the layer’s position, relative to the right side of the frame.
  • Left and right maintains the layer’s size and position relative to both sides of the frame. This may cause layers to grow or shrink along the x axis, when resized.
  • Center maintains the layer’s position, relative to the horizontal center of the frame.
  • Scale will define the layer’s size and position as a percentage of the frame's dimensions. It will then maintain those proportions as you resize it.

    For example: The frame's width is 100px and the layer's width is 70px, so the layer takes up 70% of its parent frame. If we resize the frame to 200px wide, Figma will resize the layer to a width of 140px, 70% of 200px.

Horizontal constraints.png

Vertical

Vertical constraints define how a layer behaves, as you resize the frame along the y axis.

  • Top maintains the layer’s position, relative to the top of the frame.
  • Bottom maintains the layer’s position, relative to the bottom of the frame.
  • Top and bottom maintains the layer’s size and position relative to the top and bottom of the frame. This may cause layers to grow or shrink along the y axis, when resized.
  • Center maintains the layer’s position, relative to the vertical center of the frame.
  • Scale will define the layer’s size and position as a percentage of the frame's dimensions. It will then maintain those proportions as you resize it.

Vertical constraints.png

Note: Depending on the layer’s position, more than one constraint may achieve the same result.

Apply constraints to a layer

You can apply constraints to any layer within a frame. It's not possible to apply constraints to layers outside of a frame, or layers in an auto layout frame.

  • You can also apply constraints to frames you have nested within other frames.
  • You can apply both horizontal and vertical constraints to layers.
  • You can't apply constraints to groups. A group will inherit its bounds from the layers contained within it. They aren't considered a single layer with bounds.

Note: If you apply constraints to a group, Figma applies constraints to the individual layers. 

To set the constraints for a layer:

  1. Select the layer or parent within the frame. The blue dotted line on the canvas shows which constraints are currently applied.
  2. Click [icon] Constraints from the Position section of the right sidebar.
  3. Adjust the vertical and horizontal constraints.
    • Use the drop down menus to set the layer's constraints.
    • Or, click on the lines in the interactive diagram to select a constraint.

Tip! Hold down Shift to select or apply more than one constraint at a time. For example: left and right constraints.

Ignore constraints

Sometimes you may want to resize a frame or layer, without using the constraints that are applied to it. You can temporarily ignore any constraints applied to a layer by holding down a modifier key.

  • Mac: Hold down Command when you resize
  • Windows: Hold down Ctrl when you resize

Constraints and layout guides

Constraints give you a basic framework for positioning layers within a frame. When it comes to more complex designs, we need more precise control and flexibility. This ensures our designs behave when resized.

That’s where guides come into play. When you use a guide within a frame, Figma aligns any layers within the frame to that guide. Learn how to work with constraints and layout guides →

Was this article helpful?

Yes
No
Give feedback about this article

Related Articles

  • Select layers and objects
  • Arrange layers with Smart selection
  • Create layout guides
  • Scale layers while maintaining proportions
  • Combine layout guides and constraints
  • Blog
  • Best practices
  • QR code generator
  • Color wheel
  • Colors
  • Color picker
  • Color palettes
  • Color palette generator
  • Color contrast checker
  • Font Library
  • Templates
  • Developers
  • Integrations
  • Affiliate program
  • Resource library
  • Reports and insights
  • Support
  • Status
  • Legal and privacy
  • Modern slavery statement
  • Climate disclosure statement
  • COMPARE
  • Sketch
  • Adobe XD
  • Framer
  • Miro
  • COMPANY
  • Events
  • Customers
  • Careers
  • Newsroom
Expand