title: How to inline a child div with another child div?
body: <p>I have tried float, display inline-block. Flex does work but I cant use flex as it will inline every single child div and I dont want that. I basically want few boxes in the left and one box on the right that auto size the height accordingly with the height size of the child divs from the left. I have tried floating boxChildRight to the right/left vice verse and its not working.</p>
  
  <p>HTML</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>#sp {
    position: absolute;
    left: 400px;
    top: 0;
  }
  
  #box {
    width: 100%;
    height: auto;
    margin-top: 20px;
  }
  
  .boxChildRight {
    right: 0;
    width: 20%;
    height: auto;
    border: 1px solid;
    position: relative;
    float: right;
  }
  
  .boxChildLeft {
    left: 0;
    width: 80%;
    height: 100px;
    border: 1px solid;
    margin-bottom: 2px;
    position: relative;
    float: left;
  }
  
  .prodInfo {
    float: left;
    margin-left: 10px;
  }
  
  .img {
    margin-left: 0;
    float: left;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div id="box"&gt; PARENT DIV
    &lt;div class="boxChildLeft"&gt; CHILD
      &lt;div class="img"&gt;
        &lt;img src="../shopImages/candles.jpg" width="100px" height="100px"&gt;
      &lt;/div&gt;
      &lt;div class="prodInfo"&gt;
        &lt;p1&gt;Test&lt;/p1&gt;&lt;br&gt;
        &lt;span id="sp"&gt;&lt;p1&gt;Test&lt;/p1&gt;&lt;/span&gt;
      &lt;/div&gt;
    &lt;/div&gt;
    &lt;div class="boxChildLeft"&gt;
      &lt;div class="img"&gt;
        &lt;img src="../shopImages/candles.jpg" width="100px" height="100px"&gt;
      &lt;/div&gt;
      &lt;div class="prodInfo"&gt;
        &lt;p1&gt;Test&lt;/p1&gt;&lt;br&gt;
        &lt;span id="sp"&gt;&lt;p1&gt;Test&lt;/p1&gt;&lt;/span&gt;
      &lt;/div&gt;
    &lt;/div&gt;
    &lt;div class="boxChildLeft"&gt;
      &lt;div class="img"&gt;
        &lt;img src="../shopImages/candles.jpg" width="100px" height="100px"&gt;
      &lt;/div&gt;
      &lt;div class="prodInfo"&gt;
        &lt;p1&gt;Test&lt;/p1&gt;&lt;br&gt;
        &lt;span id="sp"&gt;&lt;p1&gt;Test&lt;/p1&gt;&lt;/span&gt;
      &lt;/div&gt;
    &lt;/div&gt;
    &lt;div class="boxChildLeft"&gt;
      &lt;div class="img"&gt;
        &lt;img src="../shopImages/candles.jpg" width="100px" height="100px"&gt;
      &lt;/div&gt;
      &lt;div class="prodInfo"&gt;
        &lt;p1&gt;Test&lt;/p1&gt;&lt;br&gt;
        &lt;span id="sp"&gt;&lt;p1&gt;Test&lt;/p1&gt;&lt;/span&gt;
      &lt;/div&gt;
    &lt;/div&gt;
    &lt;div class="boxChildRight"&gt; THIS CHILD DIV SHOULD BE ON RIGHT SIDE OF ALL OTHER DIVS
    &lt;/div&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>