• Resolved HopefulGJL

    (@hopefulgjl)


    Hello,

    I would like to share a possible solution to aligning picture captions. It may not be the “best” solution, but it is working for me.

    In my search to find an answer, I tried the following code, and found it worked. Since I didn’t run across this solution elsewhere that is working for me, I thought I’d share it here since it’s something else for you to try and see if it works for you.

    With this solution, you can input this code structure in to the html side of your page or post. A lot of the other solutions I read had something to say about editing your style sheet, etc., and this below solution is working for me without having to do so.

    This code centered my picture and centered my caption text:

    <div style="text-align:center"><address class="mceTemp mceIEcenter"> </address><dl id="attachment_807" class="wp-caption aligncenter" style="width: 458px;"><dt class="wp-caption-dt;"><a href="https://thewebsite.com/?attachment_id=807" target="_blank"><img class="size-full wp-image-807 " title="Whatever you want to say here" src="https://thewebsite.com/wp-content/uploads/2010/11/The-Name-Of-Your-Picture-From-Your-Media-Library.jpg" alt="Whatever you want to say here" width="448" height="170" /></a></dt><dd class="wp-caption-dd"><span style="font-size: x-small;">Whatever you want to say here</span></dd></dl></div>

    In general, the div style text align center is what finally worked to center the caption for me. The other align-center code centered the picture on the page.
    You’ll want to adjust your height, width, etc. to suit your picture.

    I hope this helps someone out there!

  • The topic ‘Possible Solution to center picture caption text’ is closed to new replies.