How can I automatically scale the HTML5 element to fit the page?
For example, I can get a to scale by setting th
to scale by setting th
Basically what you have to do is to bind the onresize event to your body, once you catch the event you just need to resize the canvas using window.innerWidth and window.innerHeight.
Canvas Resize Your browser doesn't support canvas