title: How to use flexbox to position 3 buttons horizontally?
body: <p>I have 3 buttons that I'm trying to position in a line together (e.g. prev btn, middle btn, next btn) where now I just have it displayed as one button on top of the other 2. I can't change the html just the css fyi</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 {
        color: #838383;
        font-family: "Mada", sans-serif;
        font-size: 0.875rem;
      }
  
      .post .pagination {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        padding-top: 1.5rem;
        padding-bottom: 1.5rem;
      }
  
      .post .pagination a {
        width: 48%;
      }
  
      .post .pagination .link {
        border: 2px solid #007cad;
        text-align: center;
        margin-bottom: 0.75rem;
        padding: 0.5rem;
      }
  
      .post .pagination a,
      .post .pagination .view-all {
        text-decoration: none;
        color: #007cad;
        font-weight: 700;
      }
  
      .post .pagination .view-all {
        width: 100%;
      }
  
      /* hover effects */
      .pagination .link {
        background: #fff;
        color: #007cad;
        background-size: 250% 100%;
      }
  
      .pagination .next .link {
        background: linear-gradient(to left, #fff 50%, #007cad 50%);
        background-size: 250% 100%;
        background-position: right top;
        transition: all 0.5s ease;
        max-width: 250px;
      }
  
      .pagination .prev .link {
        background: linear-gradient(to right, #fff 50%, #007cad 50%);
        background-size: 250% 100%;
        background-position: left top;
        transition: all 0.5s ease;
        max-width: 250px;
      }
  
      .pagination .next .link:hover {
        background-position: left top;
      }
  
      .pagination .prev .link:hover {
        background-position: right top;
      }
  
      .pagination .next .link:hover,
      .pagination .prev .link:hover {
        background-color: #007cad;
        color: #fff;
        opacity: 1;
      }
  
      @media only screen and (min-width: 1366px) {
        .post .pagination {
          padding-right: 0.9375rem;
          padding-left: 0.9375rem;
          max-width: 50rem;
          margin: 0px auto 0 auto;
        }
      }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>      &lt;body&gt;
          
          &lt;div class="post grid-x grid-padding-x"&gt;
              &lt;div class="small-12 medium-10 medium-offset-1 cell pagination"&gt; 
                  &lt;a class="view-all"&gt;
                      &lt;div class="link"&gt;View full team member list&lt;/div&gt;
                  &lt;/a&gt;
                      &lt;a class="prev"&gt;
                          &lt;div class="link"&gt;&amp;lt; Prev bio&lt;/div&gt;
                      &lt;/a&gt;
                      &lt;a class="next"&gt;
                          &lt;div class="link"&gt;Next bio &amp;gt;&lt;/div&gt;
                      &lt;/a&gt;
  
              &lt;/div&gt;
          &lt;/div&gt;
        &lt;/body&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>I have 3 buttons that I'm trying to position in a line together (e.g. prev btn, middle btn, next btn) where now I just have it displayed as one button on top of the other 2. I've used flexbox to display how it currently is but i'm having a hard time trying to align these buttons together like the solution picture I uploaded.</p>
  
  <pre><code>  &lt;body&gt;
  
      &lt;div class="post grid-x grid-padding-x"&gt;
          &lt;div class="small-12 medium-10 medium-offset-1 cell pagination"&gt; 
              &lt;a class="view-all"&gt;
                  &lt;div class="link"&gt;View full team member list&lt;/div&gt;
              &lt;/a&gt;
                  &lt;a class="prev"&gt;
                      &lt;div class="link"&gt;&amp;lt; Prev bio&lt;/div&gt;
                  &lt;/a&gt;
                  &lt;a class="next"&gt;
                      &lt;div class="link"&gt;Next bio &amp;gt;&lt;/div&gt;
                  &lt;/a&gt;
  
          &lt;/div&gt;
      &lt;/div&gt;
    &lt;/body&gt;
  </code></pre>
  
  
  
  <p><a href="https://i.stack.imgur.com/umz4u.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/umz4u.png" alt="Solution Example"></a></p>