title: How to fit two rows of smaller elements in line with a bigger element?
body: <p>I'm trying to create a responsive grid, where two rows of smaller items are in line with a bigger element.</p>
  
  <p><strong>What I'm trying to achieve:</strong></p>
  
  <p><a href="https://i.stack.imgur.com/gu9ib.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/gu9ib.png" alt="Wide"></a></p>
  
  <p><a href="https://i.stack.imgur.com/3lc14.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/3lc14.png" alt="Narrow"></a></p>
  
  <p><strong>What I have:</strong></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>#thumbs {
    background-color: lightcoral;
    width: 100%;
    margin-top: 90px;
    margin-left: auto;
    margin-right: auto;
    text-align: justify;
    -ms-text-justify: distribute-all-lines;
    text-justify: distribute-all-lines;
  }
  
  #thumbs div {
    vertical-align: top;
    display: inline-block;
    *display: inline;
    zoom: 1;
  }
  
  .stretch {
    width: 100%;
    display: inline-block;
    font-size: 0;
    line-height: 0
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div class=container&gt;
    &lt;div id="thumbs"&gt;
      &lt;div&gt;
        &lt;a id="single_image1" href="#"&gt;&lt;img src="http://dummyimage.com/300x200/444/fff" alt="" /&gt;&lt;/a&gt;
      &lt;/div&gt;
      &lt;div&gt;
        &lt;a id="single_image3" href="#"&gt;&lt;img src="http://dummyimage.com/100x100/444/fff" alt="" /&gt;&lt;/a&gt;
      &lt;/div&gt;
      &lt;div&gt;
        &lt;a id="single_image3" href="#"&gt;&lt;img src="http://dummyimage.com/100x100/444/fff" alt="" /&gt;&lt;/a&gt;
      &lt;/div&gt;
      &lt;div&gt;
        &lt;a id="single_image3" href="#"&gt;&lt;img src="http://dummyimage.com/100x100/444/fff" alt="" /&gt;&lt;/a&gt;
      &lt;/div&gt;
      &lt;div&gt;
        &lt;a id="single_image3" href="#"&gt;&lt;img src="http://dummyimage.com/100x100/444/fff" alt="" /&gt;&lt;/a&gt;
      &lt;/div&gt;
      &lt;div&gt;
        &lt;a id="single_image3" href="#"&gt;&lt;img src="http://dummyimage.com/100x100/444/fff" alt="" /&gt;&lt;/a&gt;
      &lt;/div&gt;
      &lt;div&gt;
        &lt;a id="single_image3" href="#"&gt;&lt;img src="http://dummyimage.com/100x100/444/fff" alt="" /&gt;&lt;/a&gt;
      &lt;/div&gt;
      &lt;div&gt;
        &lt;a id="single_image3" href="#"&gt;&lt;img src="http://dummyimage.com/100x100/444/fff" alt="" /&gt;&lt;/a&gt;
      &lt;/div&gt;
      &lt;div&gt;
        &lt;a id="single_image3" href="#"&gt;&lt;img src="http://dummyimage.com/100x100/444/fff" alt="" /&gt;&lt;/a&gt;
      &lt;/div&gt;
      &lt;div&gt;
        &lt;a id="single_image3" href="#"&gt;&lt;img src="http://dummyimage.com/100x100/444/fff" alt="" /&gt;&lt;/a&gt;
      &lt;/div&gt;
      &lt;div&gt;
        &lt;a id="single_image3" href="#"&gt;&lt;img src="http://dummyimage.com/100x100/444/fff" alt="" /&gt;&lt;/a&gt;
      &lt;/div&gt;
      &lt;div&gt;
        &lt;a id="single_image3" href="#"&gt;&lt;img src="http://dummyimage.com/100x100/444/fff" alt="" /&gt;&lt;/a&gt;
      &lt;/div&gt;
      &lt;div&gt;
        &lt;a id="single_image3" href="#"&gt;&lt;img src="http://dummyimage.com/100x100/444/fff" alt="" /&gt;&lt;/a&gt;
      &lt;/div&gt;
      &lt;span class="stretch"&gt;&lt;/span&gt;
    &lt;/div&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>jsfiddle: <a href="http://jsfiddle.net/7985xjud/" rel="nofollow noreferrer">http://jsfiddle.net/7985xjud/</a></p>
  
  <p><strong>I have also tried flexbox:</strong></p>
  
  <p><div class="snippet" data-lang="js" data-hide="true" data-console="true" data-babel="false">
  <div class="snippet-code snippet-currently-hidden">
  <pre class="snippet-code-css lang-css prettyprint-override"><code>.flex-container {
    padding: 0;
    margin: 0;
    list-style: none;
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-flow: row wrap;
    justify-content: space-around;
  }
  
  .flex-item {
    background: tomato;
    padding: 5px;
    margin-top: 10px;
    line-height: 60px;
    color: white;
    font-weight: bold;
    font-size: 2em;
    text-align: center;
  }
  
  .big-item {
    width: 300px;
    height: 150px;
  }
  
  .small-item {
    width: 100px;
    height: 60px;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;ul class="flex-container"&gt;
    &lt;li class="flex-item big-item"&gt;1&lt;/li&gt;
    &lt;li class="flex-item small-item"&gt;2&lt;/li&gt;
    &lt;li class="flex-item small-item"&gt;3&lt;/li&gt;
    &lt;li class="flex-item small-item"&gt;4&lt;/li&gt;
    &lt;li class="flex-item small-item"&gt;5&lt;/li&gt;
    &lt;li class="flex-item small-item"&gt;6&lt;/li&gt;
    &lt;li class="flex-item small-item"&gt;7&lt;/li&gt;
  &lt;/ul&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>codepen: <a href="https://codepen.io/anon/pen/dRBKWr" rel="nofollow noreferrer">https://codepen.io/anon/pen/dRBKWr</a></p>
  
  <p>How can I do that?</p>