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


Need to repeat my CSS code in Brackets for it to have effect.

Hi Everyone,

As I am trying to re-build the website in Brackets (I am building the website from the 'How to build your own website' track).

Now I am following exactly along with what is being shown in the course. But for some reason I need to repeat some of my code in my MAIN.css.

Example: my H1 and H2 need a white color. This only applies when I repeat the code straight after each other:

h1, h2 { color: white; }

h1, h2 { color: white; }

Here are screenshots of the code: http://imageshack.com/a/img923/5161/pzcROY.png http://imageshack.com/a/img921/6691/XxQNhI.png http://imageshack.com/a/img924/3017/Fd662C.png

All help would be greatly appreciated as I really don't know what to do.

Thank you!!

2 Answers

Hmmm that makes a lot of sense! Not 100% sure if that causes this (but it seems like) Anyhow, it is information I did not know before, so super useful. Thank you Robert Neal !

Robert Neal
Robert Neal
12,372 Points

np glad I could help check out his other videos in his css series I think they might help