title: How do I adjust the slider under navbar?
body: <p>I am working on a website, what I want to achieve is that the navbar of my page stacked over the slider.
  I have tried z-index property.</p>
  
  <p>My HTML Code:</p>
  
  <pre><code>&lt;nav class="navbar navbar-expand-md bg-danger navbar-dark sticky-top container custom-navi" style="z-index: 2"&gt;
  &lt;!-- Brand --&gt;
  &lt;a class="navbar-brand" href="#"&gt;St. Clare's Sr. Sec School&lt;/a&gt;
  
  &lt;!-- Toggler/collapsibe Button --&gt;
  &lt;button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#collapsibleNavbar"&gt;
      &lt;span class="navbar-toggler-icon"&gt;&lt;/span&gt;
  &lt;/button&gt;
  
  &lt;!-- Navbar links --&gt;
  &lt;div class="collapse navbar-collapse" id="collapsibleNavbar"&gt;
      &lt;ul class="navbar-nav"&gt;
          &lt;li class="nav-item"&gt;
              &lt;a class="nav-link active" href="#"&gt;Home&lt;/a&gt;
          &lt;/li&gt;
          &lt;li class="nav-item"&gt;
              &lt;a class="nav-link" href="#"&gt;About&lt;/a&gt;
          &lt;/li&gt;
          &lt;li class="nav-item"&gt;
              &lt;a class="nav-link" href="#"&gt;Contact&lt;/a&gt;
          &lt;/li&gt;
          &lt;li class="nav-item"&gt;
              &lt;a class="nav-link" href="#"&gt;Messages&lt;/a&gt;
          &lt;/li&gt;
          &lt;li class="nav-item"&gt;
              &lt;a class="nav-link" href="#"&gt;More&lt;/a&gt;
          &lt;/li&gt;
      &lt;/ul&gt;
  &lt;/div&gt;&lt;/nav&gt;
  </code></pre>
  
  <p>What I want to achieve is shown in the below image :
  <a href="https://i.stack.imgur.com/hfCBC.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/hfCBC.jpg" alt="enter image description here"></a></p>
  
  <p>What I have right now is : </p>
  
  <p><a href="https://i.stack.imgur.com/GoKF7.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/GoKF7.png" alt="enter image description here"></a></p>