How to Center Pictures in WordPress

Posted on 08. May, 2008 by Kyle Judkins in How To

Advertisements

WordPress is a great tool, but it is not without a few bugs here and there. I have found that the ability to center images in WordPress is a little lacking, so I’m going to tell you guys the solution I have found to get that picture centered just right using HTML.

  • Place <center> before the image’s HTML code and </center> after the image’s HTML code.

I know there is some other HTML code that is supposed to center the images, but I found this method to work the best for me.

One final thing to keep in mind is to make sure you add this code at the end of editing your post. I have noticed that if you edit your post several times after adjusting your image, WordPress will just ignore the HTML changes you made.

Let me know what your solutions are.

Related Posts

Tags: , , , , , ,

8 Responses to “How to Center Pictures in WordPress”

  1. Matt

    08. May, 2008

    It’s probably better to use a instead, it may be better markup HTML wise. This is what I use anyway.

    Reply to this comment
  2. Wes

    08. May, 2008

    Using always seems to work for me.

    Reply to this comment
  3. Jim

    08. May, 2008

    Cool. I’ll have to remember that when I add images.
    Thanks

    Reply to this comment
  4. kyle.judkins

    08. May, 2008

    No problem. I’m just here to help.

    Reply to this comment
  5. Jason Mayoff

    11. May, 2008

    Wordpress is a bit finicky sometimes, isn’t it. Sometimes there’s nothing you can do to make the picture go where you want to. Using the center tag was the old fashioned way of doing it, from way back in the 1990s. Now, we use CSS, but CSS is funny sometimes, too. When nothing else works, there’s nothing like good old-fashioned ugly, deprecated HTML.

    Reply to this comment
  6. kyle.judkins

    11. May, 2008

    I’m a bit new to CSS and only have a basic understanding of HTML(coding was never my thing :D ). I have found that center tag to consistently work the best for me, but if you have any tips on CSS, I would love to hear them.

    Reply to this comment
  7. karoseyn

    27. Oct, 2009

    guess this is an old post, but wanted to say thanks, Kyle. I’ve been frustrated over this for a few weeks as I am very new to this.

    what a nice simple solution! worked for me!

    Reply to this comment

Leave a Reply

Additional comments powered by BackType