html, body { margin: 0; padding: 0; } #editorCode { height: 100%; width: 100%; position: absolute; }