I usually put my forms in tables, old school I know, and they expand/contract to fit dynamic content.
I'm sure the div tag will do the same. You may have to research the div tags style properties if it does not expand/contract automatically.
Lyndon
---People Remember about 10% of what you say ---They never forget how you made them feel. Covey