• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

Extra space in WordPress 5.03 Image?

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › Design Tips and Tricks › Extra space in WordPress 5.03 Image?

This topic is: resolved
  • This topic has 5 replies, 3 voices, and was last updated 7 years, 6 months ago by RavenManiac.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • January 29, 2019 at 12:27 pm #489112
    RavenManiac
    Participant

    I recently converted one of my websites over to WordPress 5.03. In doing so I noticed that all of my images now have a small space beneath the image and the bottom border. Scroll down to the image of the map on the linked page for an example of what I'm talking about.

    Why is this happening and how can I fix it?

    https://williamsburgmemorialpark.com/our-history/
    January 29, 2019 at 1:06 pm #489114
    Victor Font
    Moderator

    Gutenberg has it's own styles. The extra space is coming from a Gutenberg class:

    .wp-block-image {
        max-width: 100%;
        margin-bottom: 1em;
        margin-left: 0;
        margin-right: 0;
    }

    Since this is default to WordPress and something that shouldn't be changed in the delivered CSS, you have to either add the class to theme's style.css or the Customer Additional CSS to remove the bottom margin.


    Regards,

    Victor
    https://victorfont.com/
    Call us toll free: 844-VIC-FONT (842-3668)
    Have you requested your free website audit yet?

    January 29, 2019 at 1:28 pm #489116
    RavenManiac
    Participant

    Hi Victor. Thanks for your response. I'm talking about the space that's between the bottom of the map image and the bottom border. Look for the class below and turn it off and you'll see what I'm talking about. Thanks!

    .pdf-border {
        border-style: solid;
        border-width: 1px;
        border-color: black;
        box-shadow: 0 0 12px #666;
    }
    January 29, 2019 at 2:29 pm #489117
    Victor Font
    Moderator

    Okay, the extra space is coming from the line height in the body class. It's a little tricky to see, but to remove the space, add line-height: 0; to the pdf-border class.


    Regards,

    Victor
    https://victorfont.com/
    Call us toll free: 844-VIC-FONT (842-3668)
    Have you requested your free website audit yet?

    January 29, 2019 at 4:17 pm #489120
    Zeal
    Member

    D what victor said first, if it work


    Music Download Mp3

    January 30, 2019 at 8:04 am #489144
    RavenManiac
    Participant

    Thank you so much, Victor and Zeal. That worked perfectly!

  • Author
    Posts
Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Extra space in WordPress 5.03 Image?’ is closed to new replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2026 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble