title: Solid line under navbar with ::after
body: <p>So I am trying to build my navbar and I seem kind of stuck. I've been trying to get a solid yellow line about 3-5px thick underneath my navbar.</p>
  
  <p>I remember I have made a navbar in the past that looked like what I am trying to do but I forgot how to do that and I have lost that document.</p>
  
  <p>So I have used: nav::after and tried border-bottom but it does not do anything..</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>nav {
      background:black;
      margin:0;
      width:100%;
      padding: 20px;
      display: block;
  }
  nav::after {
      border-bottom: 8px solid green;
      content: '';
      position: absolute;
      left: 0;
      right: 0;
      width: 100%;
      bottom: 0;
      margin: 0 auto;
  }
  nav ul .nav-links {
      float:right;
      margin-top:20px;
      margin-right:40px;
  }
  nav ul {
      list-style-type:none;
  }
  nav li {
      display: inline-block;
      color:white;
      margin-right:30px;
  
  }
  nav a {
      color:white;
      text-decoration:none;
      float:right;
      transition:.2s ease-in-out;
      font-weight:700;
  }
  nav a:hover {
      color:#FFE600;
  }
  .nav-title {
      line-height:30px;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;nav id="nav"&gt;
      &lt;ul&gt;
          &lt;li class="nav-title"&gt;&lt;h2&gt;text text&lt;/h2&gt;&lt;h4&gt;is a text, text text text&lt;/h4&gt;&lt;/li&gt;
          &lt;div class="nav-links"&gt;
              &lt;li&gt;&lt;a href="#about"&gt;About&lt;/a&gt;&lt;/li&gt;
              &lt;li&gt;&lt;a href="#Statistics"&gt;Statistics&lt;/a&gt;&lt;/li&gt;
              &lt;li&gt;&lt;a href="#what"&gt;What can you do?&lt;/a&gt;&lt;/li&gt;
          &lt;/div&gt;
      &lt;/ul&gt;
  &lt;/nav&gt;</code></pre>
  </div>
  </div>
  </p>