single-post.html

How do I set padding to 0 on root?

Question: I want to eliminate the white space around full width blocks and between groups. How do I do this using Global Styles?

Answer: The theme.json file supports the setting of padding. It doesn’t support setting of margins.

If you need to reset margins then you’ll have to write some CSS.

You can do this in the style.css file

or write inline CSS that’s included in a common template part.

References

Global styles – theme.json

WordPress version: 5.7.2

Gutenberg version: 10.8.0

© Copyright Herb Miller, Bobbing Wide 2021