How to Center Pictures in WordPress

By kyle.judkins | May 8, 2008

If you're new here, you may want to subscribe to my RSS feed or you can subscribe by email. You can also connect with us through social networks. Thanks for visiting!


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


    6 Comments so far
    1. Matt May 8, 2008 8:28 am

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

    2. Wes May 8, 2008 5:29 pm

      Using always seems to work for me.

    3. Jim May 8, 2008 7:38 pm

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

    4. kyle.judkins May 8, 2008 9:06 pm

      No problem. I’m just here to help.

    5. Jason Mayoff May 11, 2008 3:31 pm

      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.

    6. kyle.judkins May 11, 2008 3:51 pm

      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.

    Leave a Comment

    If you would like to make a comment, please fill out the form below.

    Name (required)

    Email (required)

    Website

    Comments

    © 2007 LostInTechnology, - PassionDuo WordPress Theme