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 Sites – Figma Learn
  • Design a site

Position elements in a webpage

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

Apply relative positioning to an object Apply absolute positioning to an object Change the object’s position Apply constraints Use absolute position in an auto layout frame Apply fixed positioning to an object Apply sticky positioning to an object

Figma Sites was released in open beta at Config 2025. It is currently available on all paid plans, with a limited Starter plan experience coming soon. Learn more about what’s included in the beta.

Who can use this feature

Available on all paid plans

Requires edit access to the file

Figma offers four common CSS positioning properties to help you control the placement of elements in your web design:

  1. Relative: Follows the flow of content in an auto layout frame
  2. Absolute: Allows you to move elements freely within their parent element
  3. Fixed: Keeps elements visible on the screen
  4. Sticky: Lets elements scroll, then stick to the top edge of your screen

You can change an element’s position type from the Position section of the right sidebar.

Tip: When copying from Figma Design, positioning properties automatically convert to their corresponding types in Figma Sites. Learn more.

Position dropdown menu the right sidebar, highlighting options for Relative, Absolute, Fixed, Sticky.

Apply relative positioning to an object

In Figma Sites, elements automatically use relative positioning when placed inside an auto layout frame.

Instead of setting explicit position values, an element’s position determined by the layout rules of its parent auto layout frame.

Adjust the auto layout properties—such as direction, alignment, and padding—on the parent frame to define how items within the frame should adapt across desktop, tablet, and mobile devices.

You can’t move elements freely in a webpage when using relative positioning, as they will always follow the layout rules of the parent. To ignore the auto layout flow, switch the element to absolute positioning.

If you’re familiar with web development, auto layout frames in Figma Sites work similarly to flexbox.

When should I use relative positioning?

Relative positioning is ideal for collections of items where the layout needs to reflow for different screen sizes. For example, if you have a group of elements that appear side-by-side on desktop and should stack vertically on mobile, place them in an auto layout frame.

Apply absolute positioning to an object

Unlike relative positioning, absolute positioning gives you the flexibility to place elements freely within the parent container.

Tip: By default, any element added to a blank webpage is set to absolute positioning. If you add auto layout to the webpage, the element will automatically switch to relative positioning.

When should I use absolute positioning?

Use absolute positioning when an element needs to be placed independent of the normal page flow, such as overlays, fixed-position UI components, or graphics that need to remain stable regardless of surrounding content changes.

Change the object’s position

To change an object’s position, move the element around, or set specific values in the Constraints section of the right sidebar to pin the object to the top, bottom, left, or right. You can also use transform or alignment properties to adjust the position.

Learn more about adjusting alignment, rotation, position, and dimensions.

Apply constraints

With absolute positioning, you can set constraints to anchor an object to one or more sides of the parent layer—or to the webpage if no parent layer exists.

For example, an element positioned at 50px from the left and 100px from the top will always maintain that fixed distance from its parent’s top and left edges.

This gives you more control over how the layer responds when the parent frame is resized.

Use absolute position in an auto layout frame

An object with absolute positioning inside an auto layout frame is excluded from the auto layout flow. The object and its surrounding siblings ignore each other, even as they resize and move.

Apply fixed positioning to an object

Fixed positioning is similar to absolute positioning in that it allows you to precisely control an element's placement. However, its behavior is tied to the viewport rather than a containing element.

Layers using fixed positioning move to the top of the layers panel since fixed elements cannot have other layers placed on top of them.

When should I use fixed positioning?

Fixed positioning is ideal when you require an element to remain visible regardless of page scrolling. It is best used for navigation menus, headers, footers, or interactive components like chat widgets that must be constantly available.

Apply sticky positioning to an object

An element with sticky positioning remains in its normal flow until the user scrolls to a specific point, at which time it sticks to a defined position relative to the viewport. It continues to be visible as scrolling progresses, but stops sticking once the bottom edge of its parent container is reached.

When should I use sticky positioning?

Sticky positioning is useful for elements that need to remain visible only after they reach a predetermined scroll point. A common example is a table header row that stays visible at the top of the viewport while scrolling through the table.

Tip: You can use sticky positioning on an element in an auto layout frame. The element behaves like it has relative positioning until the sticky effect is triggered, then it behaves like it has fixed positioning.

Caution: The sticky effect only works if the parent container has enough height for the element with sticky positioning to scroll.

Was this article helpful?

Yes
No
Give feedback about this article

Related Articles

  • Use AI Tools in Figma Sites
  • Use design tools in Figma Sites
  • Add, select, and edit objects across multiple breakpoints
  • Insert blocks, embeds, webpages, and design libraries into a site
  • Improve the accessibility of your site
  • 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