title: Can't center some images one next the other with css
body: <p>I have the following code:</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>img {
    display: block;
    margin: 0 auto;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code> &lt;h2&gt;Center an Image&lt;/h2&gt;
  &lt;p&gt;To center an image, use margin: auto; and make it into a block element:&lt;/p&gt;
  
  &lt;img src="paris.jpg" alt="Paris" style="width:40%"&gt;
  &lt;img src="paris.jpg" alt="Paris" style="width:40%"&gt;
  &lt;img src="paris.jpg" alt="Paris" style="width:40%"&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>But I have this problem -</p>
  
  <p>If i do as you see in the code: I am loosing the center effect and the all images are going left.</p>
  
  <p>The only possibility I know - is to do display the images as "block" instead of "inline-block" - but that is make them one above the other and I want them to be close to each one.</p>