Negative padding values in Auto Layout

Starting a new thread hoping for negative padding values in Auto Layout. Negative values between objects was launched today (5/10/22) as a feature but you still can’t have negative padding values yet. The previous top thread for this was marked as “Launched”, so starting a new thread to re-capture this ask.

2 Likes

I don’t know if this is the right place to write it down but the negative padding doesn’t work for me if let’s say for example I have 2 frames one inside another.
The outer frame is set to “fixed” and the inner frames are set to “fill”

What we really need in these scenarios is a negative margin that would wrap around the padding of our objects. This could probably be reserved to somewhere in the “Advanced” section of the auto layout panel, but this would solve a lot of the issues where we can’t replicate what developers have in code due to not having margins.

Here’s how it’s implemented in Webflow which explains what the differences are. In code there’s both padding AND margin.

Yes! Love Webflow’s approach here. If you’re designing for the web you absolutely should understand what padding and margin are, but do agree with layering it into an “advanced” section or something.