WordPress.org

Forums

[resolved] Images Not Centering in Posts (4 posts)

  1. jamespoling
    Member
    Posted 8 years ago #

    I'm using the sandbox theme with a skin over and everything seems to be working fine except for image alignment.

    If you go to my site, http://www.metadish.com you will see what I mean. When I put an image in the editor and align it to center it looks centered in the editor but when I go to the post, like this one the image is obviously left aligned.

    I've checked the code and even tried adding plain center tags, nothing.

    Anyone have any clue why this is happening?

  2. jamespoling
    Member
    Posted 8 years ago #

    btw, i'm pretty sure none of the alignment is working on the images.

  3. jamespoling
    Member
    Posted 8 years ago #

    I checked my stylesheet and found out that my coder had put a float left attribute in the entry-img. sorry for the crap post, it was my first too.

  4. Bodhipaksa
    Member
    Posted 8 years ago #

    To center images reliably you generally have to put them within paragraph tags that are styled to be {text-align:center;}

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags