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

JavaScript

Section class to be 100% height and width

I have looked through jQuery's API and searched the internet for a way to learn how to create a section or div that has a class which would technically act like a landing page and regardless of how the browser is sized or resized that area would fill up the entire browser. Only when the site is scrolled will the remaining content be displayed. I have seen this technique with parallax scrolling sites but I do not want to do a parallax scrolling site because I have seen issues in regards to the site crashing when viewed from a mobile device.

2 Answers

Look at oneextrapixels onepagescroll

That's awesome and might work. thanks!

You might want to use a media query instead of jQuery for that