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