How to create a form that auto resizes against a changing div width?