title: How to position a CSS triangle using ::after?
body: <p>I've created a div with a bottom arrow using ::after. Here is the HTML code:</p>
  
  <pre class="lang-html prettyprint-override"><code>&lt;div class="sidebar-resources-categories"&gt;Topics&lt;/div&gt;
  &lt;div class="text-content"&gt;ok ok&lt;/div&gt;
  </code></pre>
  
  <p>And here is the CSS:</p>
  
  <pre class="lang-css prettyprint-override"><code>.sidebar-resources-categories{
      height: 50px;
      margin-bottom: 20px;
      background-color: #e8e8e8;
      font-weight: 600;
      line-height: 50px;
      text-align: center;
      font-size: 20px;
  }
  .sidebar-resources-categories::after{
      content: '';
      position: absolute;
      left: 42%;
      top: 100%;
      width: 0;
      height: 0;
      border-left: 20px solid transparent;
      border-right: 20px solid transparent;
      border-top: 20px solid #e8e8e8;
      clear: both;
  }
  </code></pre>
  
  <p>Here is the result:</p>
  
  <p><img src="https://i.stack.imgur.com/RZ3AS.png" alt="Here is the result"></p>
  
  <p>I would like the arrow to be at the very bottom of the grey div. I don't want to have the content between the div and the bottom arrow. Do you know how I can do that?</p>