#gamepad-wrapper { width: 100%; height: 100%; } canvas { z-index: -999; position:fixed; width: 100%; height: 100%; }