title: data-offset in Bootstrap Scrollspy is not offseting at all
body: <p>Any value I set to data-offset for scrollspy does not work at all. 
  Here are the relevant html, css, and js code:</p>
  
  <p><strong>HTML</strong></p>
  
  <pre><code>&lt;nav class="navbar navbar-fixed-top navbar-default"&gt;
    &lt;div class="container-fluid"&gt;
      &lt;div class="navbar-header"&gt;
        &lt;button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false"&gt;
          &lt;span class="sr-only"&gt;Toggle navigation&lt;/span&gt;
          &lt;span class="icon-bar"&gt;&lt;/span&gt;
          &lt;span class="icon-bar"&gt;&lt;/span&gt;
          &lt;span class="icon-bar"&gt;&lt;/span&gt;
        &lt;/button&gt;
        &lt;a class="navbar-brand" href="#"&gt;&lt;strong&gt;YOUNG'S PORTFOLIO&lt;/strong&gt;&lt;/a&gt;
      &lt;/div&gt;
  
      &lt;div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1"&gt;
        &lt;ul class="nav navbar-nav navbar-right enlargeItem"&gt;
          &lt;li&gt;&lt;a href="#aboutBox"&gt;ABOUT&lt;/a&gt;&lt;/li&gt;
          &lt;li&gt;&lt;a href="#portfolioBox"&gt;PORTFOLIO&lt;/a&gt;&lt;/li&gt;
          &lt;li&gt;&lt;a href="#contactBox"&gt;CONTACT&lt;/a&gt;&lt;/li&gt;
        &lt;/ul&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  &lt;/nav&gt;
  </code></pre>
  
  <p><strong>CSS</strong></p>
  
  <pre><code>body {
        background-color: gray;
        padding-top: 110px;
        data-spy='scroll';
        data-target='.navbar';
        data-offset='';
        position: relative;
      }
  </code></pre>
  
  <p><strong>JS</strong></p>
  
  <pre><code>$('body').scrollspy();
  </code></pre>
  
  <p>When I scroll to target area where a tag is defined (#aboutBox, #portfolioBox, #contactBox), it does highlight the appropriate list item.</p>
  
  <p>However, it is off a bit, so I wanted to change the offset by changing the data-offset but <strong>changing the data-offset does not do anything</strong>. </p>
  
  <p>Here is the link to the <a href="https://codepen.io/danii956/pen/RZKMWm" rel="nofollow noreferrer">codepen</a> if someone wants to take a look at the whole thing</p>