Sample

Get div info
Save div info
Create Div

Enable any DOM element to be resizable. With the cursor grab the right or bottom border and drag to the desired width or height.