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

ethan wolfe
ethan wolfe
5,717 Points

when i type in the root variables every CSS selector under it is highlighted in red?

hi my code is :root { --color-primary: #278da4; --color-secondary: #b13c69; }

for some reason after the single dash in --color-primary and --color-secondary the words "primary" and "secondary" along with every CSS selector under it is highlighted in red. any help would be appreciated... I'm also using chrome.

Hi ethan wolfe can you share your code, or somewhere online you can show us (codepen, jsbin, etc) So we can take a look?

1 Answer

ethan wolfe
ethan wolfe
5,717 Points

thank you i got it solved. its the treehouses text editor. it works fine in Atom and Visual Studio.