title: How to get margin value of a div in plain JavaScript?
body: <p>I can get height in jQuery with</p>
  
  <pre><code>$(item).outerHeight(true);
  </code></pre>
  
  <p>but how do I with JS?  </p>
  
  <p>I can get the height of the li with</p>
  
  <pre><code>document.getElementById(item).offsetHeight
  </code></pre>
  
  <p>but i will always get "" when I try margin-top:</p>
  
  <pre><code>document.getElementById(item).style.marginTop
  </code></pre>