Archived topic
Figure element has no margin
1 reply · Started by Chris on November 16, 2022
Hi,
I've just noticed that there is no margin under images on my site.
This seems to be because /wp-content/themes/generatepress/assets/css/all.min.css?ver=3.2.2 contains:
figure {
margin: 0;
}
I think this must be a fairly recent change because I use the site daily and it wouldn't have taken me long to notice it.
Is this from a recent update, and is there a setting to change it? For now I have set an override in Customizer, but it seems odd not to have any margin under an image?
Hi there,
that CSS rule has always been there, it's a null style. The change happened with WP 6.1, core removed the CSS they used to add margins to the various figure blocks. So for now it requires some CSS to add it back in:
figure {
margin-bottom: 1.5em;
}