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
Reginald BenekeCourses Plus Student 4,282 Points
Nav nested in header not forming part of header when background:none is applied
So I've been stuck on this problem for quite a few days now. I tried everything I can.
When Nick applies background:none to his nav, the nav forms part of his header. Mine, on the other hand, does not. It has no background and the only time I can see it's still there, is when I hover over it.
Any help would be greatly appreciated!
I've attached a screenshot of my workspace below.
Kind regards, Reggie.
Kyle JensenCourses Plus Student 6,293 Points
Reggie, Take a look at your mobile settings for nav and you will have your answer. If you want something to appear on only smaller viewports you need to apply a media query. You can apply any color you want to the nav section at the top, but remember that CSS files are read from top to bottom, thus, any style added in duplicate lower down in the file will be the style that is rendered to the page.