title: div not floating inside parent div with display inline-block
body: <p>I want to make both child divs to be inline inside the red box</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>.parent {
    width: 35%;
    height: 200px;
    background-color: red;
    display: inline-block;
    margin: 30px auto
  }
  .parent div {
    display: inline-block;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div class="parent"&gt;
    &lt;div style="float : left"&gt;
      &lt;img width=30% src="http://assets.bmdstatic.com/assets/Data/image_product_500x500/CANON--SKU10516586-2016926135639.jpg" /&gt;
    &lt;/div&gt;
    &lt;div style="float : left"&gt;
      &lt;img width=30% src="http://assets.bmdstatic.com/assets/Data/image_product_500x500/CANON--SKU10516586-2016926135639.jpg" /&gt;
    &lt;/div&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>
  <p><strong>Fiddle</strong> : <a href="https://jsfiddle.net/Lq8erreo/" rel="nofollow noreferrer">here</a></p>
  <p>using <code>Float : left</code> and <code>Display : inline-block</code> on child div does not work. while using <code>display : flex</code> breaks the structure.</p>