.preview { position: fixed; top: 0; pointer-events: none; } .preview > :first-child { box-sizing: border-box; margin: 0; width: 100%; height: 100%; }