title: How to display hr horizontally with flex?
body: <p>When using flexbox for styling, if the parent container is set to <code>display: flex</code> it will cause the <code>&lt;hr /&gt;</code> to be displayed vertically instead of horizontally.</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="false" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-css lang-css prettyprint-override"><code>.container {
    display: flex;
    flex: 1;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div class='container'&gt;
    &lt;h2&gt;Test&lt;/h2&gt;
    &lt;hr /&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>