title: Dynamic resize Canvas; keep image on position
body: <p>Is there a way to create a dynamic canvas which gets the same dimensions as the <code>&lt;div&gt;</code> it is in.</p>
  
  <p>I tried it with <code>height: 100%, width: 100%</code> in the CSS of canvas. Than I have a canvas always as bif as the div <strong>BUT</strong> the content inside it scales to. </p>
  
  <p>So I'd like to know a way to resize the canvas but keep the exact position of the image even if i change the landscape on mobile for example. </p>