How do I make a two column layout, where the left column is my menu and is locked (sticky? fixed?) so when you scroll vertically depending on the content height in the right column, the menu stays.
Second thing, I guess i have to use javascript for (vanilla, no jquery) is so make the columns resizable. with the css I would use 'cursor: col-resize' but the JS i have no clue.
.row {
display: flex;
}
.column {
flex: 50%;
padding: 16px;
}
.one {
background-color: tomato;
min-height: 100%;
}
.two {
background-color: #33a8ff;
height: 5000px;
}
html,
body {
height: 100%;
margin: 0;
}
<div class="row">
<div class="column one">
<h2> column #1 </h2>
<p>menu items</p>
</div>
<div class="column two">
<h2>column #2</h2>
<p> Some contents in column 2 </p>
</div>
</div>
Here is a fiddle:
https://jsfiddle.net/ojx1g64s/