I want a two-column div layout, where each one can have variable width e.g.
Use the CSS Flexbox flex-grow property to achieve this.
flex-grow
html, body { height: 100%; } body { display: flex; } .second { flex-grow: 1; }
Tree View