Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Make Responsive Images & Captions Work Together Reply To: Make Responsive Images & Captions Work Together

#200858
ASIMandy
Participant

Hi,

Thanks for the response. I wasn’t using figure and figcaption elements. I’ve just had a play around with them in codepen and I can’t seem to control the width of the img within the figure though??

Here is my code. I want the caption to break onto the next line when it’s as wide as the image, but I’m not able to say how wide the image is.

http://codepen.io/anon/pen/QbWWZg