title: How to get style.left
body: <p>Does anyone know, I have a div element when the first load I set its attributes to <code>right:0</code> and <code>bottom:0</code>; I want to get its <code>style.left</code> but it return <code>NaN</code>. So how to get it or is there another way?</p>
  
  <pre><code>&lt;div id="myDiv"&gt;Sample&lt;/div&gt;
  &lt;script type="text/javascript"&gt;
      var setMe = document.getElementById("myDiv");
      setMe.setAttribute("style", "background-color: red;
          position: absolute;
          width: 670px;
          height: 370px;
          right: 0;
          bottom: 0;");
      alert(setMe.style.left)
  &lt;/script&gt;
  </code></pre>