title: div stretching containing canvas
body: <h2>Hi i am trying to have this:</h2>
  
  <p><code>&lt;div&gt;<br>
  &lt;canvas height="300px" width="200px"&gt;&lt;/canvas&gt;<br>
  &lt;/div&gt;</code></p>
  
  <p>I created javascript to render canvas, could someone advice how to stretch div according canvas size and if it is possible without javascript?? I already tried solutions for nested divs, but it didn't work. Thanks</p>