• Hi, I am using JustWrite theme (which is quite awesome).
    When i insert any image in a post, it seems to have some padding around it. When i wrap text around the image, it looks a little inconsistent.

    Please let me know how can i reduce the padding around the image.
    Thanks.

Viewing 1 replies (of 1 total)
  • Theme Author acosmin

    (@acosmin)

    In style.css find:

    blockquote.alignleft,
    img.alignleft {
    	margin: 30px 35px 30px 0;
    }
    
    .wp-caption.alignleft {
    	margin: 30px 35px 30px 0;
    }
    
    blockquote.alignright,
    img.alignright {
    	margin: 30px 0 30px 35px;
    }
    
    .wp-caption.alignright {
    	margin: 30px 0 30px 35px;
    }
    

    Change the pixels value to what you want. To learn more about margins: https://www.w3schools.com/css/css_margin.asp

    From that page:

    If the margin property has four values:
    
    margin: 25px 50px 75px 100px;
    top margin is 25px
    right margin is 50px
    bottom margin is 75px
    left margin is 100px

    It would be better if you use a child theme.

    • This reply was modified 8 years, 2 months ago by acosmin.
Viewing 1 replies (of 1 total)
  • The topic ‘How to Reduce padding around images that have been inserted in posts.’ is closed to new replies.