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 trial

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

Commenting section is confusing to follow

Nick starts out saying that comments are easy, which they are.

  1. He adds some preliminary comments..OK
  2. Then he changes his mind and rearranges... OK
  3. Then he adds some more comments.. OK
  4. Then he changes his mind again & rearranges again...Huh??
  5. Then he says it is OK to add your own unique comments...OK
  6. Then he says that adding your own comments may goof up the web page because of the cascading nature of CSS...Why is he repeating this warning??

At the end of the section, I spend a hugh amount of time to make my MAIN.CSS follow Nick's example. However, I don't feel confident about the outcome. It would be better if Nick left out the "do over" sections.

1 Answer

Honestly, if you're able to understand the code and how it works, comments are unnecessary. The only time I would use comments would be if I had to explain something in the code, and only if I were handing it over to another developer who would be looking at it.