How to make canvas responsive
To change width is not that hard. Just remove the width attribute from the tag and add width: 100%; in the css for #canvas Changing height is a bit harder: you need javascript. I have used jQuery because i’m more comfortable with. you need to remove the height attribute from the canvas tag and add this script: You can see this fiddle: https://jsfiddle.net/1a11p3ng/3/ … Read more