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

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.