<figure>
  <img
    src="https://img.toolstud.io/240x240/3b5998/fff&text=+200x200+"
    alt="sample"
  />
  <figcaption>
    Lorem ipsum dolor sit amet consectetur adipisicing elit
  </figcaption>
</figure>
figure {
  /* ... */
  width: min-content;
}

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.