Support » Fixing WordPress » centering image

  • danithew

    (@danithew)


    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)
  • Mark (podz)

    (@podz)

    Support Maven

    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

    danithew

    (@danithew)

    Podz,
    That did it. Thanks!

    danithew

    (@danithew)

    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.