I want a two-column div layout, where each one can have variable width e.g.
You can try CSS Grid Layout.
dl { display: grid; grid-template-columns: max-content auto; } dt { grid-column: 1; } dd { grid-column: 2; margin: 0; background-color: #ccc; }
lorem ipsum dolor sit amet carpe diem