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


Alexander Dolgan
Alexander Dolgan
5,208 Points

Sticky header in Hero section

Hi to all! I can't solve a problem with my first project. If someone give me hint, it will be great. So, I have header section with

  • h1 tag with company name in the center of header div - position: absolute
  • Hero slider (bootstrap carousel), 70% window height. I need to add affix(position:fixed) for this element when user scroll page down. Problem is how better organize code for solve this task? Now I use this code: http://codepen.io/AlexanderDolgan/pen/bEjwRP Thanks for any help!