I am experiencing problems with caption alignment using the filter. I use the following code to left align a caption for a left-aligned image. The image aligns to the left, but the caption aligns to the right of the image.

[caption align=left]<img src="/sites/default/files/iphone-factory2.jpg" style="width: 273px; height: 257px; float: left; margin: 10px;" title="Example caption goes here" />This is a left-aligned caption[/caption]

I have 10px v and h spacing, and the caption appears to be captured within that space. When I remove the spacing and remove the image alignment, the caption appears correctly.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

kmonty’s picture

Status: Active » Fixed

Sorry for the delay. You don't need to "float: left;" the image itself, as the caption div generated by the script is already floated. You also don't need the margin tag (again, part of the caption div's code. You can override that setting in your css.

Hope that helps!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

captnaimerica’s picture

Comment deleted to create new issue post.