So, I've tried making the making the content area on a page adjust to the height of the content. I tried using the height property and setting it to 100% but it just messes up the page. I can only get the page to work if I use a set px height.

#MainContent {
height: 100%;
margin:0 auto;


Any suggestions?