I am interested in creating an editor that displays code on the left and its result on the right.
Why is the text inside <div>
#right stuck to the white/blue boundary? Why is there no padding? (I would like a 10px padding).
* { margin: 0; padding: 0; border: 0; }
html, body { height: 100%; overflow: hidden; }
.column { padding: 10px; overflow: y-scroll; height: calc(100% - 20px); }
#writing { min-width: 1px; max-width: 99%; float: left; width: 50%; resize: horizontal; }
#right { background-color: blue; }
<textarea id="writing" class="column">you can drag the width of this column with bottom right corner: resize </textarea>
<div id="right" class="column">
Why is this stuck to the white/blue boundary? Why is there no padding? I want a 10px padding!