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 trialAlexandra Velez
Front End Web Development Techdegree Student 9,313 PointsWhy isn't the h5 tag being selected?
In line 84, of .main css, I attempted to select the h5 that's within the .grid-full class from the HTML. The selection combination worked just fine in jQuery, but not so much when I selected the item in CSS.
When I attempted to specify background color black, it doesn't respond with that color.
Why isn't that section adopting the background color in the CSS? It looks correct, but it's not working.
1 Answer
William Ray Noble
22,190 PointsHave yo tried placing commas after .is-sticky and .grid-full?
Alexandra Velez
Front End Web Development Techdegree Student 9,313 PointsAlexandra Velez
Front End Web Development Techdegree Student 9,313 PointsI gave it a try.
If I add a comma between .grid-full and h5, it applies the black background to the HTML, rather than the sticky nav.
What I'm trying to achieve is having the background of the sticky nav to be entirely black.