Aligning images and captions

  • Author
  • #453041


    Hello –

    When I insert an image into my visual editor, they look great. Aligned how I want it, caption centered, encased in a grey box.

    However, when I publish, they look awful! No matter what I do for spacing, the image is always too close or too far from the text. The worst part is the captions – they are aligned left and look silly. I’m sure there must be a simple HTML answer for this, can any expert help my amateurish looking blog look its best?

    Here is an example of what I mean:

    The blog I need help with is



    I’m using a Firefox 3.5.8 browser and what I see is the Depo Square theme. In the post I see a single image that does not have a gray caption box around it at all. I see an image and the caption text below it against the white theme background. The theme I use Vigilance displays images and captions in the same way – no gray box.



    I forgot to say that viewed through my browser the caption is not left aligned. It is centered under the image. Which browser and version of it are you using?



    oh wow interesting – the caption is centered?? firefox 3.5.8



    time thief, do you have any insight on why we are using the same browser but mine looks like this:

    If Governor Paterson can withstand calls to resign, he may be able to see through the start of “the largest solar initiative in State history.”


    @mialamarnyu: In almost all themes, captioned images are enclosed in a light grey bg. DePo square is one of the very few exceptions. Unfortunately, captioned images use a shortcode, which is an instruction for a predetermined fromula you cannot alter. If you want to simulate the way captioned images show up in other themes, you’ll have to insert plain, not captioned, images, and use this code:

    <table align="left" style="border:solid 1px #cdcdcd;background-color:#eeeeee;width:IMAGE_WIDTH_HEREpx;margin-right:10px;">
    <tr><td align="center">CAPTION_TEXT_HERE</td></tr>

    You can change the color of the frame and/or the background, if you wish.

    I don’t understand what you mean by “the image is always too close or too far from the text”. Try the above code first, and let me know if and what you’d like to change.

The topic ‘Aligning images and captions’ is closed to new replies.