title: Add gradient border bottom to <hr> data-content text
body: <p>so far I have this &lt; hr > with the About Me text in a data-content. </p>
  
  <p><a href="https://i.stack.imgur.com/szyBP.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/szyBP.png" alt="enter image description here"></a></p>
  
  <p>I want to add a linear gradient border bottom with three colors under the text "About Me" like it is underlined. I've tried setting the background in the .section-divider:after to a linear gradient and padding and all that but it ends up setting the whole background as a linear gradient.</p>
  
  <p>HTML:</p>
  
  <pre><code>&lt;hr class="section-divider" data-content="ABOUT ME"&gt;&lt;/hr&gt;
  </code></pre>
  
  <p>CSS:</p>
  
  <pre><code>.section-divider {
    font-family: Lato-Regular;
    line-height: 1em;
    position: relative;
    outline: 0;
    border: 0;
    color: black;
    text-align: left;
    height: 1.5em;
    font-size: 20px;
  }
  .section-divider:before {
    content: '';
    background: black;
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 1px;
  }
  .section-divider:after {
    content: attr(data-content);
    position: relative;
    display: inline-block;
    color: black;
    padding: 0 .5em;
    line-height: 1.5em;
    color: black;
    background-color: white;
  }
  </code></pre>
  
  <p>If anyone knows how to do this or a better way to do this hr with text aligned to the left better in general let me know, thank you!</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-divider {
    font-family: Lato-Regular;
    line-height: 1em;
    position: relative;
    outline: 0;
    border: 0;
    color: black;
    text-align: left;
    height: 1.5em;
    font-size: 20px;
  }
  .section-divider:before {
    content: '';
    background: black;
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 1px;
  }
  .section-divider:after {
    content: attr(data-content);
    position: relative;
    display: inline-block;
    color: black;
    padding: 0 .5em;
    line-height: 1.5em;
    color: black;
    background-color: white;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;hr class="section-divider" data-content="ABOUT ME"&gt;&lt;/hr&gt;</code></pre>
  </div>
  </div>
  </p>