WordPress.org

Support

Support » How-To and Troubleshooting » [Resolved] Images Not Centering in Posts

[Resolved] Images Not Centering in Posts

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • btw, i’m pretty sure none of the alignment is working on the images.

    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.

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Resolved] Images Not Centering in Posts’ is closed to new replies.