Is there a way to resize a div to smaller than the declared height and width?
I’m making an application where the user can resize a div and save it. However, when I load it later and set it to the size the user set to last time, they can make the div bigger, but not smaller.
This is a sample div:
.cls {
border: solid 1px;
width: 100px;
height: 100px;
resize: both;
overflow: auto;
}
This question has the same issue but uses GWT and doesn’t seem to have a good solution.
You requested a workaround for your problem, or was wondering how-to at least. I made you a simple workaround that might require a little work; note it is a workaround, and might therefore contain glitches.
Updated fiddle: http://jsfiddle.net/FNXnD/1/