Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

General Discussion

Automatically adjust page height. HELP PLEASE!

Ok so I have little to none knowledge of jquery and javascript (Still learning), however I've been told that you can only do what i'm trying to do with it. My issue is that on this website i'm creating each page has different amounts of content in it which makes certain pages longer than other ones and the only way I know how to fix it is setting the main container div height long enough to contain the page with the most content. This makes the pages with very little content look ridiculous. Is there a way to automatically adjust the size of each page?

2 Answers

You don't need to adjust the size of the page per say - without seeing any code - if you have any height on your containing DIV, just remove it and allow the content to be the length it needs to be.

Thank you Caroline that did indeed fix the problem! Now I'm just trying to figure out how to stretch my vertical navigation bar down the side of the content so it matches the full length of the content. Thank you for your help!