How to Automatically Center Blog Post Images

Community Forums Forums Design Tips and Tricks How to Automatically Center Blog Post Images

This topic is: not resolved

This topic contains 1 reply, has 2 voices, and was last updated by  Brian Gardner 1 year, 6 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #8883

    auzajun
    Participant

    I just migrated from Blogger to WordPress and I’m using the Generate theme. How do I automatically center all the images from my blogs posts? I don’t want to edit my posts one by one. I have tried editing the Stylesheet but it didn’t work.

    #10588

    Brian Gardner
    Keymaster
    Post count: 17

    Try adding this to your style.css file:

    [css].entry-content img {
    display: block;
    margin: 0 auto;
    }[/css]


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

You must be logged in to reply to this topic.