title: Stretch div to A4 size
body: <p>I have the following function which works great.</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
  function printDiv(printpage)
  {
  var headstr = "&lt;html&gt;&lt;head&gt;&lt;title&gt;&lt;/title&gt;&lt;/head&gt;&lt;body&gt;";
  var newstr = document.all.item(printpage).innerHTML;
  var oldstr = document.body.innerHTML;
  document.body.innerHTML = headstr+newstr;
  window.print();
  document.body.innerHTML = oldstr;
  return false;
  }
  &lt;/script&gt;
  </code></pre>
  
  <p>However my div is about half of the paper size. Is there a way to make my div stretch to a full paper size when the function is called?</p>