body { overflow: hidden; margin:0px; } canvas { bottom: 0; left: 0; margin: auto; position: absolute; right: 0; top: 0; }