JSFiddle - React, Tailwind, and code Playground

HTML

<figure>
    <img src="http://i.imgur.com/tVeUqlH.jpg"/>
        <figcaption>Vader enjoying the beach.</figcaption>
</figure>

CSS

figure {
    border: 1px solid black;
    display: inline-block;
    padding: 3px;
    margin: 10px;
}

figure img {
    vertical-align: top;
}

figcaption {
    text-align: center;
    border: 1px dotted blue;
    width: 120px;
}