title: Center two elements side-by-side using flexbox
body: <p>How to use CSS flex to horizontally center an anchor and a paragraph next to each other on a page?</p>
  
  <p>I'm trying to avoid using <code>float</code> on the anchor and paragraph though I've not exactly mastered flex.</p>
  
  <p>The anchor/image should appear to the left of the paragraph though they as a whole should remain centered.</p>
  
  <p>What I've got to thus far:</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>section
  {
   align-items: center;
   display: flex;
   flex-direction: column;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;section&gt;
   &lt;a href="#"&gt;
    &lt;img alt="Example" src="https://jsfiddle.net/img/logo.png" /&gt;
   &lt;/a&gt;
   &lt;p&gt;Description goes here...&lt;/p&gt;
  &lt;/section&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p><a href="https://jsfiddle.net/eondkrpd/" rel="noreferrer">https://jsfiddle.net/eondkrpd/</a></p>