I am a group. Fullwidth, 0 margins.
I am also a group as above. Like I always say, us groups gotta stick together.
Not me. I’m a loner group. I also haven’t had my margins twiddled with in the settings panel. Oo err.
Backend margins
By not setting a margin I inherit the default global 24px top margin in the backend.
margin-top: var( --wp--style--block-gap )
If you change the margin in the backend settings panel you’ll see this reflected, but the default value you can specify for the frontend isn’t shown.
Frontend margins
You can set a default values for the frontend in theme.json.
"styles": {
"blocks": {
"core/group": {
"spacing": {
"margin": {
"top": "40px",
"right": "0px",
"bottom": "40px",
"left": "0"
}
}
}
}
}
This doesn’t flow through to the backend unfortunately. See above.
Same
Jus a gigolo. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
Heading
More words.
