• Resolved CB

    (@tng2013)


    Hello Richie & other users,

    I want to reduce the size of the box that surrounds an image in my posts. I have used the current CSS to reduce the font size and remove the grey background of the box:

    #custom .wp-caption {box-shadow: none;background-color: transparent;}
    #custom .wp-caption .wp-caption-text {padding: 10px;font-size: 11px;line-height: 15px;}
    #custom .wp-caption .wp-caption-text:before {content: ”;}

    However the space between the caption and the body content is pretty big. Do you know how to reduce it?

    To show you the example; my website is http://northamptongent.com/a-taste-of-the-mediterranean-nuovo-restaurant/

    Any help would be much appreciated!

Viewing 3 replies - 1 through 3 (of 3 total)
  • BjScott

    (@bjscott)

    Hello!

    Try this:

    .wp-caption {
    margin-bottom: 0.525em;

    Does that help?

    Thread Starter CB

    (@tng2013)

    Hi!

    That is brilliant, it worked a treat. Many thanks for your help!

    BjScott

    (@bjscott)

    You are very welcome!!

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Reduce caption box around image’ is closed to new replies.