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
Scott Wilcox
9,517 PointsPages within a page.
I have a static header and footer page along with a css file that is styling the header/footer and is already styling any div added to it. Within the header is a login/password form. I'm not worried about the login part at this time.
Within the footer is a navigation area with 19 links to internal pages that are yet to be created.
What I want to do is only code the div that will be displayed depending on the link clicked and have these pages appear between the header and footer in a div, taking on the css of the main page that is holding the header and footer. This has to happen without a scroll bar appearing for that div, the overall page scroll bar is ok.
I would prefer to do this without javascript or jquery if possible. I am building a huge site and i am not adding javascript or ruby functionality to it yet. I am just getting the base site down before moving on to functionality.
1 Answer
Colin Marshall
32,861 PointsYou would not be able to do this without javascript. However, you could accomplish this with a very basic jQuery script.