• Hi!

    I am using this shortcode to make my image captions background grey:

    .wp-caption .wp-caption-text {
    font-size: 14px !important;
    color: #000000;
    text-align: center;
    background-color: #F2F2F2;
    padding-top: 1px;
    margin: 1px;
    }

    However, there is a gap between my image and my captions box. Anyone have any idea of how to eliminate this gap?

    URL: https://trailsofnorway.com/uncategorized/start-here/

    Thanks ??

Viewing 1 replies (of 1 total)
  • Joey

    (@leglesslizard)

    Hey,

    I’m not too hot on css so can’t quite figure out why but the image having a style of “display:inline” seems to be the issue. Changing the image to “display:block” closes the gap.

    Hope that helps!

    Joey

Viewing 1 replies (of 1 total)
  • The topic ‘Image captions:’ is closed to new replies.