html, body { margin: 0; padding: 0; } canvas{ border: 2px solid black; margin-top:50px; margin-left: 350px; }