<figure>
    <img src="https://www.w3cplus.com/sites/default/files/blogs/2016/1606/text-align-last-demo.jpg" alt=""  width="300" />
    <figcaption>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,quis nostrud exercitation.</figcaption>
</figure>
<figure>
    <img src="https://www.w3cplus.com/sites/default/files/blogs/2016/1606/text-align-last-demo.jpg" alt=""  width="300" />
    <figcaption>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,quis nostrud exercitation.</figcaption>
</figure>
html,
body {
  width: 100vw;
  height: 100vh;
  text-align: center;
}


figure {
  display: inline-block;
  margin: 15px;
  padding: 10px;
  border-radius: 5px;
  background-color: #eee;
  width: 300px;
}

figcaption {
  font-size: 12px;
  margin-top: 10px;
  text-align: justify;
  text-align-last: auto;
  line-height: 1.5;
}

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.