<figure class="fit basicfig"> <img src="http://thenewcode.com/assets/images/thumbnails/big-bug1.jpg" alt="Photograph of a large bug"> <img src="http://thenewcode.com/assets/images/thumbnails/big-bug2.jpg" alt="Photograph of a large bug"> </figure>
.basicfig { border: 2px solid #222; background: #555; font-size: 0; text-align: left; } .fit { width: -moz-fit-content; width: -webkit-fit-content; width: fit-content; display: table; } .basicfig img { width: 200px; }