WordPress.org

Forums

centering image (4 posts)

  1. danithew
    Member
    Posted 10 years ago #

    I have some images that I've posted in some posts using the exhibit plugin. I have figured out how to surround the image with a black border, but I need some help figuring out how to get the image to center within the post box.

  2. Mark (podz)
    Support Maven
    Posted 10 years ago #

    In the CSS:
    .cent {
    text-align: center;
    }
    In the post:
    <div class="cent"> <img src="..... /> </div>
    That should do it.
    You could make a quicktag for the 'cent' tag too

  3. danithew
    Member
    Posted 10 years ago #

    Podz,
    That did it. Thanks!

  4. danithew
    Member
    Posted 10 years ago #

    Hrrm... one of the things that validating my site shows as an error is using the "div" commands. Is there another command I could use that would be acceptable and would have the desired effect?

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.