Site logo

[Support request] Figure element has no margin

Home Forums Support [Support request] Figure element has no margin

Home Forums Support Figure element has no margin

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #2417653
    Chris

    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?

    #2417862
    David
    Staff
    Customer Support

    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;
    }
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.