Turning on flexbox using display: flex

Now we'll rebuild the columns using flexbox. We'll take a look at our index.html file. Here's are markup for this area we are calling columns:

<!-- ===============Secondary Sections===============--><section class="secondary-section grouping">  <div class="wrapper">    <div class="column">      <figure>        <img src="images/octopus-icon.png" alt="Octopus">      </figure>      <h2>The Octopus</h2>      <p>Lorem ipsum dolor...</p>      <a href="#" class="button">Tenticals &raquo;</a>    </div>    <div class="column">      <figure>        <img src="images/crab-icon.png" alt="Crab">      </figure>      <h2>The Crab</h2>      <p>Lorem ipsum dolor...</p>      <a href="#" class="button">Crabby &raquo;</a>    </div>    <div class="column"> <figure><img src="images/whale-icon.png" alt="Whale"></figure> ...

Get Mastering CSS now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.