title: How can I build this badge with CSS?
body: <p>I would like to add a badge to my navbar. It should look like the one in the image below.</p>
  <p><a href="https://i.stack.imgur.com/qNn4D.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/qNn4D.png" alt="enter image description here" /></a></p>
  <p><strong>My current Approach</strong></p>
  <p>I use two divs for this. One above and one below. The lower one should do the rounding.<br />
  My approach works not so good and I find it more hacky as good.</p>
  <p><strong>Question</strong></p>
  <p>I wonder if there is a better, cleaner way? Can somebody help me?</p>
  <p>Thanks in advance, Max</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>* {
    margin: 0;
    padding: 0;
    font-family: Verdana,Geneva,sans-serif; 
  }
  body {
    background-color: #f1f1f1;
  }
  
  nav {
    height: 80px;
    background-color: white; 
    padding:10px 80px;
    box-sizing: border-box;  
    display: flex;
    justify-content: space-between;
  }
  
  .badge-top {
    background: #ccc; 
    margin-top:-10px;
    height:25px; 
    padding-top:20px; 
    padding-left:5px;
    padding-right:5px;  
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19); 
    font-size:0.8rem; 
    font-weight:bold; 
    width:30px; 
    text-align: center;  
  }
  
  .badge-bottom {
    background: #ccc; 
    color:#ccc; 
    border-radius:50px; 
    margin-top:-10px;
  }
  
  .badge-bottom:after {
    content: '.';
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;nav&gt;
    &lt;div&gt;logo&lt;/div&gt;
    &lt;div&gt;
      &lt;button class="btn nav-btn"&gt;SUBMIT&lt;/button&gt;    
    &lt;/div&gt;
    &lt;div&gt;
      &lt;div class="badge-top"&gt;123&lt;/div&gt;
      &lt;div class="badge-bottom"&gt;&lt;/div&gt;
    &lt;/div&gt;
  &lt;/nav&gt;</code></pre>
  </div>
  </div>
  </p>