Remove the figure margin style
-
Now, it appears Gutenberg automatically adds a specific rule to
<figure>tags which is difficult to override when using css@layer. It doesn’t matter that their rule is prefixed with:where().I tried disabling it in my theme.json file under the
core/image block, but it didn’t seem to work.
How do we get rid of this via filter or theme.json?:where(figure) {
margin: 0 0 1em
}I tried:
"settings": { "blocks": { "core/image": { "spacing": { "margin": false }}}
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
The topic ‘Remove the figure margin style’ is closed to new replies.