Support » Fixing WordPress » centering image

  • 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.

Viewing 3 replies - 1 through 3 (of 3 total)
  • 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

    Podz,
    That did it. Thanks!

    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?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘centering image’ is closed to new replies.