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

Eduardo Rios
Eduardo Rios
5,031 Points

CSS Workspace Help

Ok so when im working on how to built a website and you type out a property, it doesnt change to the color anymore the text stays black. if some one could help me so thats all the css properties go back to the color, so you know you typed a correct proprty, maybe its a keyboard shortcut to turn that feature off idk. Thanks in advance.

Eduardo Rios
Eduardo Rios
5,031 Points

for example in workspaces if i was to do

Class {

background: red; width: puppies; } background and width dont change color anymore they just stay black. HELP VERY ANNOYED

1 Answer

Joe Bruno
Joe Bruno
35,909 Points

Check your selector. In the case you have provided above, "Class" should be written ".Class" You need a period in front of the name of your class in your css to properly select it. "puppies" is obviously an invalid property for width. If you look in your developer tools, the browser will cancel it out and likely have a small caution symbol next to the line indicating the syntax is invalid.