You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It is not possible to use negative margins in the margin control.
What is your proposed solution?
If negative margins were allowed, designers could overlap blocks easier without having to create custom block styles.
This would also open up for more varied block patterns -the block pattern directory can not use custom block styles.
Reacted by Will Skora, DeoThemes, Tim Sinclair, Wolfgang Stefani, Márcio Duarte, mrleemon, Randhir Kumar Jha, Vikas Singhal, Aniket Ashtikar, Justin Tadlock and 44 more
Reacted by Will Skora, Tim Sinclair, annezazu, JEHarnum, Adson Cicilioti, Francesco Grasso, Robin Cramer, AnAn, miral_kashiwagi, Jamie Sanchez and 13 more
Reacted by Francesco Grasso, Robin Cramer, Andrew Fair, Andres, Jonathan Roley and lunule
Does anyone know if there are plans to implement this? Negative margins are a very common and useful layout tool that seems should be enabled by default for the core margin control.
As this is being explored in this initial PR (#60347), I want to share some UX considerations. Specifically, I want to note that there needs to be a pause/stop point before going to negative values when using either the slider or the ability to drag up/down to change controls as shown below:
negative.margin.mp4
Right now, with the current PR that is meant to be a small start towards solving this, you can quickly slide past the 0 and it would go a long way to have a "sticky" point at 0 as it's a common action to try to 0 out values to reset something. I'm aware, I can go to the three dot menu to reset but this would keep the more visible options useful to reset while also allowing new functionality.
Activity
thirumani02 commentedon Aug 10, 2021
Actually you can do it by passing
minprop.for ex.
It is not explained in Readme but i can able to find it when searching inside core files
timsinc commentedon Jan 17, 2022
Does anyone know if there are plans to implement this? Negative margins are a very common and useful layout tool that seems should be enabled by default for the core margin control.
aurooba commentedon Jan 23, 2022
Hallo! Trying to work with FSE and this is a serious serious oversight. We need to be able to set negative margins, it's a very common technique.
carolinan commentedon Feb 7, 2022
I am not sure how this would affect the blockgap?
mrfoxtalbot commentedon Feb 7, 2022
+1 to adding negative margins. I just found a case in the wild where this would have been very useful.
timsinc commentedon Feb 7, 2022
I believe a negative margin value would affect the blockgap just like a positive margin does and override the blockgap css for that particular block.
daviedR commentedon Feb 8, 2022
+1
Negative margin is essential for design and layout building
samxmunoz commentedon Apr 12, 2022
+1
Negative margin allowing for overlapping elements is essential.
rolf-yoast commentedon Apr 13, 2022
+1
I need it for a design I'm currently building.
aristath commentedon Apr 28, 2022
Reopening this one because #40464 is getting reverted.
61 remaining items
flabernardez commentedon Jan 24, 2024
Need it! Please! Now I'm adding it with a css class 😔
alperta commentedon Feb 10, 2024
+1 so that we don't need to write custom css classes.
wpsoul commentedon Feb 27, 2024
OMG, it still doesn't have negative margin?
DevAndreyBilchenko commentedon Feb 29, 2024
+1 topic started from 2021
[-]Feature request: Allow negative margins in controls[/-][+]Negative margin in dimension controls[/+]SH4LIN commentedon Mar 28, 2024
+1
lunule commentedon Mar 28, 2024
+1
cloudcreationsjess commentedon Mar 29, 2024
+1
annezazu commentedon Apr 3, 2024
As this is being explored in this initial PR (#60347), I want to share some UX considerations. Specifically, I want to note that there needs to be a pause/stop point before going to negative values when using either the slider or the ability to drag up/down to change controls as shown below:
negative.margin.mp4
Right now, with the current PR that is meant to be a small start towards solving this, you can quickly slide past the 0 and it would go a long way to have a "sticky" point at 0 as it's a common action to try to 0 out values to reset something. I'm aware, I can go to the three dot menu to reset but this would keep the more visible options useful to reset while also allowing new functionality.