Sometimes you might want to remove margin or padding from blocks in the block editor (most commonly when using images). To do this, we have created two utility CSS classes you can add to a block's "Advanced > Additional CSS Classes" field in the block settings sidebar.
no-margin
no-padding
This example contains a Columns block with two 50% wide columns. In the first column, we've added a Heading block with a green background and white text and an image block. By default, there is 20px of margin on the top and bottom of images.
Notice the space above the image in the example below.
Add the CSS class no-margin to the "Advanced > Additional CSS Classes" field to remove this space