title: Horizontal scrolling menu width in jQuery
body: <p>I'm trying to make a horizontal scrolling menu bar like this:</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>div.scrollmenu {
    background-color: #333;
    overflow: auto;
    white-space: nowrap;
  }
  
  div.scrollmenu a {
    display: inline-block;
    color: white;
    text-align: center;
    padding: 14px;
    text-decoration: none;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div class="scrollmenu"&gt;
    &lt;a href="#home"&gt;Home&lt;/a&gt;
    &lt;a href="#news"&gt;News&lt;/a&gt;
    &lt;a href="#contact"&gt;Contact&lt;/a&gt;
    &lt;a href="#about"&gt;About&lt;/a&gt;
    &lt;a href="#support"&gt;Support&lt;/a&gt;
    &lt;a href="#blog"&gt;Blog&lt;/a&gt;
    &lt;a href="#tools"&gt;Tools&lt;/a&gt;
    &lt;a href="#base"&gt;Base&lt;/a&gt;
    &lt;a href="#custom"&gt;Custom&lt;/a&gt;
    &lt;a href="#more"&gt;More&lt;/a&gt;
    &lt;a href="#logo"&gt;Logo&lt;/a&gt;
    &lt;a href="#friends"&gt;Friends&lt;/a&gt;
    &lt;a href="#partners"&gt;Partners&lt;/a&gt;
    &lt;a href="#people"&gt;People&lt;/a&gt;
    &lt;a href="#work"&gt;Work&lt;/a&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>My question is: how can I get the full width of <code>.scrollmenu</code> in jQuery? I mean its shown + hidden parts. If I use <code>$(".scrollmenu").width();</code> I just get the width of the visible part of that div.</p>