title: How to remove the space between the children of an element with flex-wrap:wrap applied?
body: <p>The question is about <code>.text-wrapper</code>, which has <code>display:flex; flex-wrap:wrap</code> applied to it. The reason for using <code>flex-wrap:wrap</code> is that otherwise <code>.text-wrapper</code> and <code>.tabs-wrapper</code> wouldn't stop being on one line, next to each other, like <code>inline</code> elements (<em>though I have no idea why, because <code>div</code>s should be <code>block</code> level elements, no? I'll appreciate if someone can enlighten me on this one as well</em>)</p>
  
  <p>The problem is that I want the children of <code>.text-container</code> to its bottom, and not have more than 20px space between them.</p>
  
  <p>But right now, there is a lot of space between <code>.text-wrapper</code> and <code>.tabs-wrapper</code>. How do I fix this?</p>
  
  <p><strong><a href="https://jsfiddle.net/KheKhe/xc6resfL/3/" rel="nofollow">JSFiddle here.</a></strong></p>
  
  <p>OR</p>
  
  <p><div class="snippet" data-lang="js" data-hide="true">
  <div class="snippet-code snippet-currently-hidden">
  <pre class="snippet-code-css lang-css prettyprint-override"><code>html,
  body {
      height: 100%;
   box-sizing:border-box;
  }
  
  .the-page {
   height:100%;
   width:100%;
   position:relative;
  }
  
  .first-bottom {
      height: 100%;
  }
  
  .image-container img {
      position: fixed;
      width: 100%;
      height: 100%;
      left: 0px;
      top: 0px;
      display: block;
  }
  
  .text-container {
   height:100%;
   width:100%;
   top:0px;
   position:relative;
   display:flex;
   align-items:flex-end;
   flex-wrap:wrap;
  }
  
  .text-wrapper span {
   text-align:center;
   color:yellow;
  }
  
  .tabs-wrapper {
   height:50px;
   width:100%;
   background-color:pink;
   opacity:0.5;
  }
  
  .tabs-wrapper-inner {
   height:100%;
   display:flex;
   align-items:center;
   justify-content:center;
   width:60%;
   margin:auto;
  }
  
  .tabs-wrapper-inner a {
   text-decoration:none;
   font:sans-serif;
   font-weight:bold;
   color:red;
   padding:10px;
  }
  
  .other-content {
      background-color: purple;
      opacity: 0.5;
      width: 100%;
      height: 500px;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div class="the-page"&gt;
  
  &lt;div class="first-bottom"&gt;
      &lt;div class="image-container"&gt;
          &lt;img src="http://photostry.com/wp-content/uploads/2011/09/highway-arizona-to-utah.jpg" /&gt;
      &lt;/div&gt;
   
   &lt;div class="text-container"&gt;
    &lt;div class="text-wrapper"&gt;
     &lt;span&gt;SUN BEACH WARM&lt;/span&gt;
    &lt;/div&gt;
    &lt;div class="tabs-wrapper"&gt;
     &lt;div class="tabs-wrapper-inner"&gt;
      &lt;a href="#"&gt;AMY&lt;/a&gt;
      &lt;a href="#"&gt;BAMY&lt;/a&gt;
      &lt;a href="#"&gt;CAMY&lt;/a&gt;
      &lt;a href="#"&gt;DAMY&lt;/a&gt;
      &lt;a href="#"&gt;EAMY&lt;/a&gt;
     &lt;/div&gt;
    &lt;/div&gt;
   &lt;/div&gt;
  &lt;/div&gt;
  
  &lt;div class="other-content"&gt;.&lt;/div&gt;
  
  &lt;/div&gt;&lt;!-- #the-page --&gt;</code></pre>
  </div>
  </div>
  </p>