title: CSS circle without using fixed width and height
body: <p>I want to display the notification count inside a circle but I don't want it to have a fixed width so the circle can expand when there is a bigger number/text inside the circle.</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>.circle {
    height: 20px;
    width: 20px;
    line-height: 20px;
    border-radius: 50%;
    background-color: red;
    color: white;
    text-align: center;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div class="circle"&gt;5&lt;/div&gt;
  &lt;br&gt;
  &lt;div class="circle"&gt;102&lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>