Using your own jQuery plugin "resizable" and the class of the element with this name you need to put down this element Selector . The content of this element should also be inside when resizing.
A small example and what is wrong with it:
The content remains with the element, not inside when the height of the element decreases.
Not the selector reduces the element, but the element itself works as a selector.