title: Change full height navbar-item background color
body: <p>I'm using bootstrap 4. And I want to replicate this page's design:</p>
  
  <p><a href="https://www.stickermule.com/custom-stickers" rel="nofollow noreferrer">https://www.stickermule.com/custom-stickers</a></p>
  
  <p>For a more clear idea, I'm using a red bg to ilustrate what I need. </p>
  
  <p>I could change the navbar item background color to red, but there is a gap at the top and at the bottom. </p>
  
  <p>How can I solve this?</p>
  
  <p><a href="https://i.stack.imgur.com/fjd0I.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/fjd0I.png" alt="enter image description here"></a></p>
  
  <p>CSS Code:</p>
  
  <pre><code>li.nav-item:hover {
    background-color: red;
  }
  </code></pre>
  
  <p>Code:</p>
  
  <pre><code>&lt;nav class="navbar navbar-expand-md navbar-dark fixed-top navbar-bg"&gt;
      &lt;!--&lt;a class="navbar-brand" href="#"&gt;Navbar&lt;/a&gt;--&gt;
      &lt;button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarsExampleDefault"
              aria-controls="navbarsExampleDefault" aria-expanded="false" aria-label="Toggle navigation"&gt;
          &lt;span class="navbar-toggler-icon"&gt;&lt;/span&gt;
      &lt;/button&gt;
  
      &lt;div class="collapse navbar-collapse" id="navbarsExampleDefault"&gt;
  
          &lt;div class="col-md-8"&gt;
              &lt;ul class="navbar-nav mr-auto"&gt;
  
                  &lt;li class="nav-item active"&gt;
                      &lt;a class="nav-link" href="#"&gt;Stickers &lt;span class="sr-only"&gt;(current)&lt;/span&gt;&lt;/a&gt;
                  &lt;/li&gt;
                  &lt;li class="nav-item active"&gt;
                      &lt;a class="nav-link" href="#"&gt;Etiquetas&lt;/a&gt;
                  &lt;/li&gt;
                  &lt;li class="nav-item active"&gt;
                      &lt;a class="nav-link" href="#"&gt;Magnetos&lt;/a&gt;
                  &lt;/li&gt;
                  &lt;li class="nav-item active"&gt;
                      &lt;a class="nav-link" href="#"&gt;Pines&lt;/a&gt;
                  &lt;/li&gt;
                  &lt;li class="nav-item active"&gt;
                      &lt;a class="nav-link" href="#"&gt;Pines&lt;/a&gt;
                  &lt;/li&gt;
                  &lt;li class="nav-item active"&gt;
                      &lt;a class="nav-link" href="#"&gt;Empaques&lt;/a&gt;
                  &lt;/li&gt;
                  &lt;!--&lt;li class="nav-item dropdown"&gt;
                      &lt;a class="nav-link dropdown-toggle" href="http://example.com" id="dropdown01" data-toggle="dropdown"
                         aria-haspopup="true" aria-expanded="false"&gt;Dropdown&lt;/a&gt;
                      &lt;div class="dropdown-menu" aria-labelledby="dropdown01"&gt;
                          &lt;a class="dropdown-item" href="#"&gt;Action&lt;/a&gt;
                          &lt;a class="dropdown-item" href="#"&gt;Another action&lt;/a&gt;
                          &lt;a class="dropdown-item" href="#"&gt;Something else here&lt;/a&gt;
                      &lt;/div&gt;
                  &lt;/li&gt;--&gt;
  
  
              &lt;/ul&gt;
          &lt;/div&gt;
          &lt;div class="col-md-4"&gt;
  
              &lt;ul class="navbar-nav mr-auto"&gt;
                  &lt;li class="nav-item active"&gt;
                      &lt;a class="glyphicon glyphicon-globe"&gt;&lt;/a&gt;
                  &lt;/li&gt;
                  &lt;li class="nav-item active"&gt;
                      &lt;a class="nav-link" href="#"&gt;LogIn&lt;/a&gt;
                  &lt;/li&gt;
                  &lt;li class="nav-item active"&gt;
                      &lt;a class="nav-link" href="#"&gt;Registro&lt;/a&gt;
                  &lt;/li&gt;
              &lt;/ul&gt;
          &lt;/div&gt;
          &lt;!--&lt;form class="form-inline my-2 my-lg-0"&gt;
              &lt;input class="form-control mr-sm-2" type="text" placeholder="Search" aria-label="Search"&gt;
              &lt;button class="btn btn-outline-success my-2 my-sm-0" type="submit"&gt;Search&lt;/button&gt;
          &lt;/form&gt;
          --&gt;
      &lt;/div&gt;
  &lt;/nav&gt;
  </code></pre>
  
  <p><strong>UPDATE 1:</strong></p>
  
  <p>Solution by works only when adding nav tag :</p>
  
  <pre><code>nav.navbar {padding: 0 1rem;}
  </code></pre>
  
  <p>Instead of just:</p>
  
  <pre><code>.navbar {padding: 0 1rem;}
  </code></pre>
  
  <p>Why?</p>
  
  <p>I'm calling my css file like this:</p>
  
  <pre><code>&lt;link href="{% static 'gallito_app/style.css' %}" rel="stylesheet"&gt;
  </code></pre>
  
  <p><strong>Head content:</strong></p>
  
  <pre><code>&lt;head&gt;
      &lt;meta charset="utf-8"&gt;
      &lt;meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"&gt;
      &lt;meta name="description" content=""&gt;
      &lt;meta name="author" content=""&gt;
      &lt;link rel="icon" href="../../../../favicon.ico"&gt;
  
      &lt;title&gt;Jumbotron Template for Bootstrap&lt;/title&gt;
  
      &lt;!-- Bootstrap core CSS --&gt;
      &lt;link href="../../dist/css/bootstrap.min.css" rel="stylesheet"&gt;
  
      &lt;!-- Custom styles for this template --&gt;
      &lt;link href="jumbotron.css" rel="stylesheet"&gt;
      &lt;!-- Custom styles for this template --&gt;
  
      &lt;link href="{% static 'gallito_app/style.css' %}" rel="stylesheet"&gt;
  
      &lt;link href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" rel="stylesheet"&gt;
      &lt;link href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js" rel="stylesheet"&gt;
      &lt;link href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.bundle.min.js" rel="stylesheet"&gt;
  
  
  &lt;/head&gt;
  </code></pre>