title: CSS flex align buttons
body: <p>I'm trying to learn to align buttons correctly using flex.</p>
  
  <p>On desktop looks like I want it:</p>
  
  <p><a href="https://i.stack.imgur.com/vpdXn.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/vpdXn.png" alt="enter image description here"></a></p>
  
  <p>So does in portrait on mobile:</p>
  
  <p><a href="https://i.stack.imgur.com/jAAAk.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/jAAAk.png" alt="enter image description here"></a></p>
  
  <p>However when on landscape, it looks like this:</p>
  
  <p><a href="https://i.stack.imgur.com/iShn3.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/iShn3.png" alt="enter image description here"></a></p>
  
  <p>I'd prefer it would look more align.</p>
  
  <p>Here's my code for this part:</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>.row {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
  }
  
  .col {
    -ms-flex-preferred-size: 0;
    flex-basis: 0;
    -ms-flex-positive: 1;
    flex-grow: 1;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div&gt;
    &lt;div class="row"&gt;
      &lt;div class="btnWrap col" style=""&gt;
        &lt;button type="button" id="TopNames" class="btn btn-secondary btn-top active" onclick="topButtonClick(this)"&gt;Najpogostejša imena&lt;/button&gt;
      &lt;/div&gt;
      &lt;div class="btnWrap col" style=""&gt;
        &lt;button type="button" id="TopBabyNames" class="btn btn-secondary btn-top" onclick="topButtonClick(this)"&gt;Imena novorojenčkov&lt;/button&gt;
      &lt;/div&gt;
      &lt;div class="btnWrap col" style=""&gt;
        &lt;button type="button" id="TopDisappearingNames" class="btn btn-secondary btn-top" onclick="topButtonClick(this)"&gt;Izginjajoča imena&lt;/button&gt;
      &lt;/div&gt;
      &lt;div class="btnWrap col" style=""&gt;
        &lt;button type="button" id="TopModernNames" class="btn btn-secondary btn-top" onclick="topButtonClick(this)"&gt;Sodobna imena&lt;/button&gt;
      &lt;/div&gt;
      &lt;div class="btnWrap col" style=""&gt;
        &lt;button type="button" id="TopLastnames" class="btn btn-secondary btn-top" onclick="topButtonClick(this)"&gt;Najpogostejši priimki&lt;/button&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>