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