Welcome to the Treehouse Community
Looking to learn something new?
Alexander Dolgan5,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!