title: bootstrap4 navbar with fullscreen overlay
body: <p>I want the bootstrap 4 navigation bar to stay fully expanded. Also I would like to have an overlay element where the image and text is aligned to the right. i.e the clickable img/text "All categories", is aligned to the right.</p>
  
  <p>Here is what I have. I cannot get the text to go to the right.</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>.overlay {
      height: 100%;
      width: 0;
      position: fixed;
      z-index: 1;
      top: 0;
      left: 0;
      background-color: rgb(0,0,0);
      background-color: rgba(0,0,0, 0.9);
      overflow-x: hidden;
      transition: 0.5s;
  }
  
  .overlay-content {
      position: relative;
      top: 25%;
      width: 100%;
      text-align: center;
      margin-top: 30px;
  }
  
  .overlay a {
      padding: 8px;
      text-decoration: none;
      font-size: 36px;
      color: #818181;
      display: block;
      transition: 0.3s;
  }
  
  .overlay a:hover, .overlay a:focus {
      color: #f1f1f1;
  }
  
  .overlay .closebtn {
      position: absolute;
      top: 20px;
      right: 45px;
      font-size: 60px;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;body&gt;
    
    &lt;div id="myNav" class="overlay"&gt;
    &lt;a href="javascript:void(0)" class="closebtn" onclick="closeNav()"&gt;&amp;times;&lt;/a&gt;
    &lt;div class="overlay-content"&gt;
      &lt;a href="#"&gt;About&lt;/a&gt;
      &lt;a href="#"&gt;Services&lt;/a&gt;
      &lt;a href="#"&gt;Clients&lt;/a&gt;
      &lt;a href="#"&gt;Contact&lt;/a&gt;
    &lt;/div&gt;
  &lt;/div&gt;
    
    
    &lt;nav class="navbar navbar-expand navbar-light bg-light"&gt;
      &lt;a class="navbar-brand" href="#"&gt;
        &lt;img src="img/icons/logo/pquizlogo.svg" width="38" height="38" class="d-inline-block align-top" alt=""&gt;Brand-name
      &lt;/a&gt;
      &lt;div&gt;
      &lt;span style="font-size:30px;cursor:pointer" onclick="openNav()"&gt;&amp;#9776; All categories&lt;/span&gt;
        &lt;script&gt;
        function openNav() {
        document.getElementById("myNav").style.width = "100%";
        }
        function closeNav() {
        document.getElementById("myNav").style.width = "0%";
        }
        &lt;/script&gt;
      &lt;/div&gt;
    &lt;/nav&gt;
  &lt;/body&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>Please tell me if the HTML is alright, and how to make 'All categories' show up to the right of the navbar.</p>
  
  <p>thanks!</p>