centering image (4 posts)

  1. danithew
    Posted 11 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 11 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
    Posted 11 years ago #

    That did it. Thanks!

  4. danithew
    Posted 11 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


No tags yet.