title: Center text above images
body: <p>I have a question: how can I center the text above the appropriate image?</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-css lang-css prettyprint-override"><code>#container {
    text-align: center;
  }
  
  .text {
    display: inline-block;
    margin: 0 20px 0 20px;
  }
  
  .img {
    margin: 0 20px 0 20px;
    width: 50px;
    height: 50px;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div id="container"&gt;
    &lt;div class="text"&gt;100&lt;/div&gt;
    &lt;div class="text"&gt;500&lt;/div&gt;
    &lt;div class="text"&gt;1000&lt;/div&gt;
    &lt;br&gt;
    &lt;img src="http://img.loveit.pl/obrazki/20120312/fotobig/89f1dfc750ee6522d6769aa.gif" class="img"&gt;
    &lt;img src="http://img.loveit.pl/obrazki/20120312/fotobig/89f1dfc750ee6522d6769aa.gif" class="img"&gt;
    &lt;img src="http://img.loveit.pl/obrazki/20120312/fotobig/89f1dfc750ee6522d6769aa.gif" class="img"&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>I've tried a lot of ways, but I couldn't get a good effect.</p>
  
  <p>How it should look:</p>
  
  <p><a href="https://i.stack.imgur.com/75Ui2.png" rel="nofollow noreferrer" title="Link to image showing how the end result should appear."><img src="https://i.stack.imgur.com/75Ui2.png" /></a></p>