Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • #5179

    I am trying to align an image to the center, on the visual it shows that it is centered but when i check the post published it is aligned to the left even though from the image box it is showing center.

    I tried it with several posts, left works fine, right works fine but center alignment always takes a left.




    in your style.css you can change the margin at line 1487 to the following:

    .aligncenter {
    clear: both;
    display: block;
    margin: 10px auto !important;
    padding: 10px 0;


    Hi, I tried it, it didn’t work, I tried increase padding to 20px it is working now but since i am not much in to coding, will that action affect anything else on the template?



    Actually when you keep the padding unchanged the image should stay centered with the code I provided. To answer your padding question, no – it will change the top and bottom padding of items with an aligncenter class. It doesn’t change too much.

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

The topic ‘Single Post Image Alighnment’ is closed to new replies.