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 trialChristie Balistrieri
820 PointsNav Background on Mobile
What makes this code:
/* nav background on mobile */ nav { background: #599a68; }
particular to mobile?
3 Answers
Hugo Paz
15,622 PointsHi Christie,
At this stage, nothing on that code is specific to mobile. That particular lesson is about comments and how they help you making your code more readable.
Basically he is putting a comment there saying, "this is the color the background navigation will have on mobile". Once he starts coding the css for the mobile version, he will look at that comment and know that that piece of code is for mobile only.
Christie Balistrieri
820 PointsGot it, thanks! Makes sense. Just wanted to make sure I wasn't missing something.
Christie Balistrieri
820 PointsGot it, thanks! Makes sense. Just wanted to make sure I wasn't missing something.