Change padding around images

Home Forums Automattic Wire Change padding around images

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • #107695 Resolve



    I’m wondering what the CSS is to change the padding around images that are part of the body of different pages and posts. For example, on my “Front End Loading” page, I’d like the text to fit immediately under the images but instead there is padding of close to 50 px:


    The blog I need help with is



    Give this CSS a try:

    .entry-content .alignnone {
    margin: 1.5em 0;

    Change the “1.5em” value to your desired value. You can also use pixels if you prefer. Keep the “0” in place, however. The first number sets the top and bottom margins, and the second number sets the left and right margins.



    Awesome, that worked!

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

The topic ‘Change padding around images’ is closed to new replies.