I want a two-column div layout, where each one can have variable width e.g.
You can use W3's CSS library that contains a class called rest that does just that:
rest
150px w3-rest
150px
w3-rest
Don't forget to link the CSS library in the page's header:
header
Here's the official demo: W3 School Tryit Editor