Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

when I insert an image into a post, the <div> that contains that image (and thus any caption) is set to be wider that the image itself.

For example, I have added an image that is 211px wide. The <div> that houses the image has an element style of 221px.

Is there a way, other than using javascript, to remove that, and have the box of equal width to the containing image?

share|improve this question

1 Answer 1

up vote 1 down vote accepted

something I wrote a while ago: 'Adjusting Caption Frame Width'

share|improve this answer
    
Well done Squire. It's mental that this even happens. –  Mild Fuzz Sep 9 '11 at 20:50

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.