Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

CSS How to Make a Website Customizing Colors and Fonts Organize CSS with Comments

Christie Balistrieri
Christie Balistrieri
820 Points

Nav Background on Mobile

What makes this code:

/* nav background on mobile */ nav { background: #599a68; }

particular to mobile?

3 Answers

Hugo Paz
Hugo Paz
15,622 Points

Hi 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
Christie Balistrieri
820 Points

Got it, thanks! Makes sense. Just wanted to make sure I wasn't missing something.

Christie Balistrieri
Christie Balistrieri
820 Points

Got it, thanks! Makes sense. Just wanted to make sure I wasn't missing something.