title: Changing percentage element of css through javascript, using a variable
body: <p>I am trying to change a the width value of my div using javascript. 
  Using:</p>
  
  <pre><code>document.getElementById("id").style.width = "25%";
  </code></pre>
  
  <p>works fine for string literals, but I want to set the value using a variable.</p>