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 trialAsa Gayle
6,525 PointsNot sure what the issue is. No jQuery functions affecting DOM
Here's a screenshot of what I have: https://w.trhou.se/rn6bo06x6i. I tried to get it to just display the black overlay with no success and literally went back and copied letter for letter the exact same code I saw in the video yet no results. Other people's code copied into my own seems to work though so there must be a bug I just can't see? Your input is appreciated
2 Answers
Asa Gayle
6,525 PointsSolved! Turns out I forgot the % on my height CSS so it was giving me a max width div with 0 height. Thanks JavaScript console!
Jeff Jacobson-Swartfager
15,419 PointsIt looks like the issue you're experiencing is just due to a small typo: don't forget your units when delcaring a height with CSS! If the parser sees a rule that doesn't make sense, it just ignores the rule. As a result, you don't have a height for your overlay!
Instead, use this on line 35:
height:100%; // You need the % symbol here!