• Dear All,

    whenever I’m adding captions to my images, WP incapsulate them in a div that looks like this:

    <div id=”attachment_695″ class=”wp-caption aligncenter” style=”width: 1710px;”>

    All my images are uploaded at maximum resolution and then scaled down with different stylesheets according to screen size but the caption always takes the width of the original picture.

    How can I overcome this?

    I obtained a few results by imposing an !important declaration on the various stylesheets but this is not ideal as pictures might have different widths and I would have to rethink the entire layout which is otherwise fine without captions.

    Setting manually the width to auto not only is not recommended but it won’t work either!

    Regards,

    Matteo

  • The topic ‘Caption width (not the infamous extra 10px)’ is closed to new replies.