I have a slight problem with the sizes of pages being to short to display all of the items I pull from the database. Basically, the guy who made the website before I took it over has pages set up with this command:

$page_height = "2000px";

This doesn't seem like a very good way to size the pages. I have pages that have content going further down the page than the content area. How do I fix this? Is there a better way to resize the pages or is there a way to make them size to fit just the content at hand? I don't know much about PHP and this function seems faulty... I just need an easier way to make the content fit the products.