title: CSS canvas width and height setting
body: <p>I am creating canvas element with javascript like  </p>
  
  <pre><code>Can=document.createElement("canvas");
  </code></pre>
  
  <p>Then I want to set the width of this element in centimeters. I am doing </p>
  
  <pre><code>Can.style.width="8cm";
  Can.style.height="5cm";
  </code></pre>
  
  <p>I am setting other css properties like,</p>
  
  <pre><code>Can.style.cssText = 'position:relative; top:24px; left:28px; border-radius:30px; float:left; cursor:pointer; box-shadow: 0px 0px 2px 2px black; background-color:#cdcdcd';
  </code></pre>
  
  <p>But it is not being set. What's is the problem? How to do this?</p>