WordPress.org

Forums

center content in full width page? (2 posts)

  1. shmish
    Member
    Posted 8 years ago #

    Hello, I'm setting up a photoblog using wordpress. I'm experimenting with using a full width page (width: 100%), and now I need to ensure that my photos are centered on the page. So far I only know how to set a left or right margin, but there must be a way to ensure that the photo (ie post content) is centered?

    thanks

  2. yosemite
    Member
    Posted 8 years ago #

    You could try adding display: block; to whatever your css selector is for post content, or more specifically:

    .post-content img {
    display: block;
    }

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags