html, body { height: 100%; margin: 0; overflow: hidden; padding: 0; } body canvas { height: 100%; width: 100%; }