html, body { max-width: 100vw; overflow: hidden; } .preview, .switch, .settings { display: none; } .prettyprint, .preview { position: absolute; height: 100%; width: 100%; border: none !important; overflow: visible; }