title: Alternatives to flex wrapping
body: <p>Are there other ways to wrap these picture items that have the <code>display: flex;</code> property? Right now I am wrapping them using the <code>flex-wrap</code> property, but are there any more out there?</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>body {
    margin: 0px;
  }
  
  img {}
  
  h1 {}
  
  p {}
  
  a {
    background-color: #ddd;
    border: 1px solid #000;
    padding: 10px 20px;
    margin: 10px;
  }
  
  .container {
    display: flex;
    flex-wrap: wrap;
  }
  
  .item {
    background-color: #eee;
    padding: 10px;
    margin: 10px;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div class="container"&gt;
  
    &lt;div class="item"&gt;
      &lt;img src="http://lorempixel.com/1024/512/" alt=""&gt;
      &lt;h1&gt;Title 1&lt;/h1&gt;
      &lt;a href="#"&gt;Link&lt;/a&gt;
      &lt;p&gt;Lorizzle ipsizzle dolor shizzle my nizzle crocodizzle amizzle, yo mamma fo shizzle mah nizzle fo rizzle, mah home g-dizzle elit. Nullizzle mofo velizzle, dizzle volutpizzle, suscipizzle fo shizzle, phat vizzle, fizzle. Pellentesque eget rizzle. Sizzle
        erizzle. Shizzle my nizzle crocodizzle izzle bling bling dapibus turpis tempizzle crunk.&lt;/p&gt;
    &lt;/div&gt;
  
    &lt;div class="item"&gt;
      &lt;img src="http://lorempixel.com/512/512/" alt=""&gt;
      &lt;h1&gt;Title 2&lt;/h1&gt;
      &lt;a href="#"&gt;Link&lt;/a&gt;
      &lt;p&gt;Lorizzle ipsizzle dolor shizzle my nizzle crocodizzle amizzle, yo mamma fo shizzle mah nizzle fo rizzle, mah home g-dizzle elit. Nullizzle mofo velizzle, dizzle volutpizzle, suscipizzle fo shizzle, phat vizzle, fizzle. Pellentesque eget rizzle. Sizzle
        erizzle. Shizzle my nizzle crocodizzle izzle bling bling dapibus turpis tempizzle crunk.&lt;/p&gt;
    &lt;/div&gt;
  
    &lt;div class="item"&gt;
      &lt;img src="http://lorempixel.com/1024/512/" alt=""&gt;
      &lt;h1&gt;Title 3&lt;/h1&gt;
      &lt;a href="#"&gt;Link&lt;/a&gt;
      &lt;p&gt;Lorizzle ipsizzle dolor shizzle my nizzle crocodizzle amizzle, yo mamma fo shizzle mah nizzle fo rizzle, mah home g-dizzle elit. Nullizzle mofo velizzle, dizzle volutpizzle, suscipizzle fo shizzle, phat vizzle, fizzle. Pellentesque eget rizzle. Sizzle
        erizzle. Shizzle my nizzle crocodizzle izzle bling bling dapibus turpis tempizzle crunk.&lt;/p&gt;
    &lt;/div&gt;
  
    &lt;div class="item"&gt;
      &lt;img src="http://lorempixel.com/512/256/" alt=""&gt;
      &lt;h1&gt;Title 4&lt;/h1&gt;
      &lt;a href="#"&gt;Link&lt;/a&gt;
      &lt;p&gt;Lorizzle ipsizzle dolor shizzle my nizzle crocodizzle amizzle, yo mamma fo shizzle mah nizzle fo rizzle, mah home g-dizzle elit. Nullizzle mofo velizzle, dizzle volutpizzle, suscipizzle fo shizzle, phat vizzle, fizzle. Pellentesque eget rizzle. Sizzle
        erizzle. Shizzle my nizzle crocodizzle izzle bling bling dapibus turpis tempizzle crunk.&lt;/p&gt;
    &lt;/div&gt;
  
    &lt;div class="item"&gt;
      &lt;img src="http://lorempixel.com/512/512/" alt=""&gt;
      &lt;h1&gt;Title 5&lt;/h1&gt;
      &lt;a href="#"&gt;Link&lt;/a&gt;
      &lt;p&gt;Lorizzle ipsizzle dolor shizzle my nizzle crocodizzle amizzle, yo mamma fo shizzle mah nizzle fo rizzle, mah home g-dizzle elit. Nullizzle mofo velizzle, dizzle volutpizzle, suscipizzle fo shizzle, phat vizzle, fizzle. Pellentesque eget rizzle. Sizzle
        erizzle. Shizzle my nizzle crocodizzle izzle bling bling dapibus turpis tempizzle crunk.&lt;/p&gt;
    &lt;/div&gt;
  
    &lt;div class="item"&gt;
      &lt;img src="http://lorempixel.com/1024/512/" alt=""&gt;
      &lt;h1&gt;Title 6&lt;/h1&gt;
      &lt;a href="#"&gt;Link&lt;/a&gt;
      &lt;p&gt;Lorizzle ipsizzle dolor shizzle my nizzle crocodizzle amizzle, yo mamma fo shizzle mah nizzle fo rizzle, mah home g-dizzle elit. Nullizzle mofo velizzle, dizzle volutpizzle, suscipizzle fo shizzle, phat vizzle, fizzle. Pellentesque eget rizzle. Sizzle
        erizzle. Shizzle my nizzle crocodizzle izzle bling bling dapibus turpis tempizzle crunk.&lt;/p&gt;
    &lt;/div&gt;
  
    &lt;div class="item"&gt;
      &lt;img src="http://lorempixel.com/512/512/" alt=""&gt;
      &lt;h1&gt;Title 7&lt;/h1&gt;
      &lt;a href="#"&gt;Link&lt;/a&gt;
      &lt;p&gt;Lorizzle ipsizzle dolor shizzle my nizzle crocodizzle amizzle, yo mamma fo shizzle mah nizzle fo rizzle, mah home g-dizzle elit. Nullizzle mofo velizzle, dizzle volutpizzle, suscipizzle fo shizzle, phat vizzle, fizzle. Pellentesque eget rizzle. Sizzle
        erizzle. Shizzle my nizzle crocodizzle izzle bling bling dapibus turpis tempizzle crunk.&lt;/p&gt;
    &lt;/div&gt;
  
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>