Find answers, ask questions, and connect with our
community around the world.

Forums Forums Web Design WordPress No padding or big padding problem!

  • No padding or big padding problem!

     David updated 2 years, 9 months ago 2 Members · 2 Posts
  • David

    Member
    December 28, 2019 at 4:23 am

    **EDIT TO ADD FIX:**

    I tried adding styles to the style sheet, and none of the 3 options offered by others worked. Then I installed the Custom CSS & JS plugin and created a stylesheet using the 3 options. They worked.!

    **ORIGINAL PROBLEM BELOW:**

    I’m using OnePress, and recently found that images have no padding, if there is a caption.

    If image has no caption there looks to be 10 pixels of padding on the side of the image with text—either left or right.

    [https://www.mswpa.org/fallmeeting/](https://www.mswpa.org/fallmeeting/): [Image 1](https://imgur.com/LFmOsF2) and [Image 2](https://imgur.com/FxKAqdI)

    I have no idea what would cause this, and I’ve tried using the plugin Advanced Image Styles without luck.

    I’ve also tried pasting in:

    >body.post img.with-padding{ padding: 5px; }
    >
    >body.page img.with-padding{ padding: 5px; }

    Although I’m not exactly sure where to paste it in the stylesheet with its sections:

    /*————————————————————–

    >>> TABLE OF CONTENTS:

    —————————————————————-

    1.0 Reset

    2.0 Document

    3.0 Layout

    4.0 Structure

    5.0 Contents

    6.0 Elements

    7.0 Widgets

    8.0 Sections

    9.0 External Plugins

    View post on imgur.com

  • MrNotPink

    Guest
    December 28, 2019 at 4:23 am

    Impossible to tell without a link to the site and your two examples.

  • pixeldevs

    Guest
    December 28, 2019 at 4:23 am

    You could do something like this in your css

    .wp-caption.alignleft {
    padding-right: 10px;
    }

    .wp-caption.alignright {
    padding-left: 10px;
    }

Viewing 1 - 3 of 3 replies
Reply to: David
Your information:

Cancel
Original Post
0 of 0 posts June 2018
Now