title: javascript code giving different values in chrome
body: <p>As I was trying to center a drop down menu, I recieved a javascript code that would do the job, but the problem is what it gives me different values in dreamweaver/IE from chrome/firefox.
  This is a piece of the code:</p>
  
  <pre><code>$(document).ready(function () {
      $("nav ul ul").each(function () {
          var navWidth = $(this).width();
          var liWidth = $(this).closest("li").width();
          var gaps = navWidth - liWidth; 
          alert(gaps);
      });
  });
  </code></pre>
  
  <p>In dreamweaver I would get 25, -86 and -163, but in chrome, I get 54, -34 and -88.</p>