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!
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
Matthew Sweet
2,083 PointsFixed header with scrolling/disappearing content
So I am working on personal project for practice and am trying to get the header so that at first it stays above the content at the top but as you begin to scroll the content disappears behind the header as it stays stuck to the top of the window. I'm not sure what I am missing or doing wrong but would greatly appreciate any help!
Thanks!
Edit: A little more clarification. My content is currently beginning behind the header not starting directly below it. How do I push the content down so that the first main body content starts directly below the header but I still get the disappear effect once I start scrolling?

Matthew Sweet
2,083 PointsSorry about that. Edit made.
1 Answer

Sreng Hong
15,083 PointsI think of the easy way is to make your #content { margin-top: 140px; }
If you still need help, you can let me know
Sreng Hong
15,083 PointsSreng Hong
15,083 PointsSo what is your question? I don't get it.