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
Don't specify a height, and the div will automatically resize with the contents.
If you need a minimum size, there is a CSS property called min-height that sets the minimum height of the div.
min-height