While codding my own JavaScript-based resizable panel I figured that there's a nice new CSS3 style property that does that trick in a much cleaner way. But the only problem I'm facing with this CSS based approach is that it can only be resized from the corner while it has to be resizable from the borders too not only the corner! The user might not even notice that it can be resized from the corner.
Please don't disappoint me and tell me that there's no way to achieve this with the CSS resize property! I didn't find enough information on w3.org but I'm still putting some hope in this.
.container{
background-color: black;
width: 400px;
height: 400px;
}
.resizable{
background-color: lightgray;
width: 300px;
height: 400px;
resize: both;
overflow: auto;
min-width: 200px;
min-height: 200px;
max-width: 350px;
max-height: 400px;
}
<div class="container" >
<div class="resizable">
<p>Drag the bottom-right corner to resize me</p>
<p>However, Unfortunately, you can't resize me by dragging any of the right or bottom borders</p>
</div>
</div>