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 trialReginald Beneke
Courses Plus Student 4,282 PointsNav nested in header not forming part of header when background:none is applied
Hi all,
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.
1 Answer
Kyle Jensen
Courses Plus Student 6,293 PointsReggie, 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.
Kyle Jensen
Courses Plus Student 6,293 PointsKyle Jensen
Courses Plus Student 6,293 PointsAlso, background-color: none; is not valid. You can have a color value, or a value of [inherit, transparent]