Centering of images in a post

Home Support PT Magazine Centering of images in a post

Tagged: , ,

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #12320
    Anonymous
    Inactive

    Even though in the editor we select to center an image, when the page is displayed, the images are left aligned. I’ve tries applying additional CSS to center things, but I’ve had no luck. Can you help?

    You can see the left aligned images which would be centered, on this page as an example:

    Gojira + Rolo Tomassi + Dead Label @ Brixton Academy London

    Thanks!

    #12345
    nirav
    Keymaster

    Hello Gbwaye,

    Greetings of the day!

    Follow the below steps to add custom CSS.

    1) Please log in to the admin area
    2) Go to “Appearance >> Customize >> Additional CSS”.
    3) Paste the below code in “Additional CSS” and save it afterward:

    @media only screen and (min-width: 768px){
    .entry-content > .aligncenter, .entry-summary > .aligncenter {
        margin-left: auto;
        margin-right: auto;
    }
    }

    Hope this helps.

    Feel free to get in touch in case of other queries.

    Thanks and Regards,
    Team ProDesigns

    #12376
    Anonymous
    Inactive

    Thanks so much for this, it worked!

    #12380
    nirav
    Keymaster

    Hello Gbwaye,

    You are welcome!

    Feel free to get in touch in case you have other queries.

    Have a great day ahead.

    Thanks and Regards,
    Team ProDesigns

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.