How to make div scrollable, without hard-coding its height? Usually when you want to make div scrollable, you need to set max-height, otherwise it will be expanding.

```
#element {
    overflow:auto;
    max-height: 100px;
}

```

In my case, I want height to be restricted by parents height (and parent is resizable), not by setting it in CSS.

Here is JSFiddle:
<http://jsfiddle.net/mbrnwsk/58qSc/1/>