Gutenberg image block padding

QuestionsCategory: Hello SerendipitousGutenberg image block padding
Phil Marinucci asked 5 years ago

Do you know how to remove the padding that Gutenberg puts around an image?

2 Answers
Jennifer Staff answered 5 years ago

Which page are you trying to remove the padding from? That should help with the css.

Phil Marinucci replied 5 years ago

Mainly the landing page template. Every time I put in an image, it has padding, so the edge of the image isn’t lined up with the text.

Jennifer Staff answered 5 years ago

Is it the padding that Gutenberg is adding, or the plugin Kadence Blocks? When I inspect the code I only see padding that is being added from that plugin. You may be able to go into that plugin and adjust the flex %. If not, code can be added to force the change.

Phil Marinucci replied 5 years ago

Pretty sure it’s just Gutenberg. I tried adding padding CSS, didn’t seem to work. My syntax was probably wrong. Would you mind sending me the right code to remove the padding?