Skip to main content

Add Margins To Auto Layout


london

Auto-Layout has padding (inner spacing), but no margins (outer spacing).

Currently the only 2 ways to add spacing is to:

  • Create a spacer element or
  • Wrap the items in another frame and apply gap spacing
    • This creates a lot of unnecessary frames, and sometimes creates nesting so deep it goes outside the layers panel.

Not sure if a technical limitation left this out of consideration in the first few versions of Auto Layout, but it would be much appreciated if it were included in a future version as it comes up as a significant limitation many times a day.

29 replies

  • 0 replies
  • February 24, 2022

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.


  • 2 replies
  • March 24, 2023

The padding and gap feature of the Auto Layout is super nice already, but wouldn’t it be even nicer if there also was a setting for margins? Some elements/components need some white space and sometimes they need a special/custom margin beside/over/under other components in the Auto Layout.


Al_Avery
  • New Participant
  • 7 replies
  • May 3, 2023

I completely agree. Currently, if you want margins around an element you need to place it in another container (sorta like DIV-ititis). Having an option for margins in addition to the paddings we have now would make mock-ups closer to real-world HTML/CSS - not to mention less cluttered layer structures.


Oh yes! We need margins! Is this the only thead for margin? Only 6 votes?? for real?!


It could look something like this:
image
maybe?! Please?!


Olutoye_Aboaba

Just to reignite… we would so love this


David_Flitcroft

How are there no margin settings for a frame? Really?
A fundamental setting that is missing…
Until the day it is included, extra frames it is I suppose…


Darrel
  • 3 replies
  • January 31, 2024

Just chiming in that margin settings would be a godsend. Really need this option especially for those of us that are using a CSS mental model when laying stuff out in Figma.


Margins are a must have, paddings cannot have negative values which is really needed in some cases.


MG17
  • 18 replies
  • March 21, 2024

Only 38 votes for such a must have? 😳


Noah_Greer

I also agree that this would be very helpful! As someone who works with CSS regularly, I cannot accomplish certain things (such as adding spacing to a component with a background) in Figma as I would in CSS using margins without affecting their appearance. Margins would be a valued feature for me.


Lino_Ramirez

Bumping this because I’m also having this issue where devs are expecting to see margin-top instead of padding-top so it’s a little confusing (especially in a big team since they have to remember to not use “padding” property).


  • 1 reply
  • March 28, 2024

Seems like a big big miss to not include margins! As the comment above mine states, it’s important for designers to be able to work with the same properties as devs do to cut down on confusion, double work, etc.


Travis2
  • Active Member
  • 76 replies
  • March 29, 2024

those of us that are using a CSS mental model

Not to mention, those developers using actual CSS to build the things we make in Figma!


Travis2
  • Active Member
  • 76 replies
  • March 29, 2024

I mean ideally, shouldn’t autolayout have a 1:1 relationship to flexbox? Wouldn’t it be easier for everyone if autolayout’s capabilities and options and values exactly matched flexbox (like adding margins)? We’re not designing in a vacuum - I don’t design stuff so that it looks good in Figma, I design it so that some developer can take it and build it.


Lia3
  • New Member
  • 2 replies
  • April 9, 2024

Absolutely agree. What’s the point of having an entirely unique type of object with different attributes/limitations/quirks when the obvious purpose/benefit is to mimic flexbox containers?


ahmadfawaid
  • New Participant
  • 14 replies
  • July 9, 2024

really need this feature!


Carlos_Fonseca

A cannot wait to see Figma allow using margins instead of creating nesting frames!!


MG17
  • 18 replies
  • August 19, 2024

Push.

Plus some characters to reach the min am0unt.


Andy_Thelwell

It’s insane that this feature is missing. It’s a “screen layout 101” type of thing. Crazy that this does not exist already.


Aidil_Goh
  • New Member
  • 4 replies
  • October 29, 2024

Not a high priority as I can still kinda create margins with autolayouts and extra layers, but would be a big help if the margin property is shown in dev handoff.


Luke-Itineris
  • Active Member
  • 128 replies
  • November 7, 2024

When is this due to be implemented?


Aldo_Omar
  • 1 reply
  • December 2, 2024

We need margins plis.


Victor_Morales

I want to be able to assign individual margins to elements within the Autolayout.


Leo_Torres
  • 4 replies
  • December 28, 2024

Super disappointed this is not supported yet. Bonus points if we ever get collapsible margins like in CSS!


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings