I have a div on a page that I need to put content into. Sometimes the content is a few lines high, and sometimes the content is more than the screen height with varying size
Resizing vertically to fit the content is the expected behavior. If you have specified floats somewhere in your css you may need to clear them: