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
J.Ryan Moss
1,202 PointsIn css after the text shadow property why should there be no space after the property and the colon for it to be correct
. main-heading { text-shadow:0 0 5px #008B8B }
INSTEAD I PUT THIS IN ANSWER IN THE QUIZ AND IT WAS WRONG!!!
.main-heading { text-shadow: 0 0 5px #008B8B }
^^^^^^^^^^ usually there is a space after the colon specify the value of the property. So on the quiz I got this answer wrong because there needed to bed a space and im not sure why... can someone help me out ??
2 Answers
Steven Parker
243,318 PointsThere seems to be a stray space between the period and "main-heading" in the first example. That would be a syntax error and was probably the real issue.
Having a space (or not) after the colon should not make any difference.
Tatenda Gapa
5,199 PointsThe space shouldn't matter
Steven Parker
243,318 PointsYes, if you mean the one after the colon. But the one between the period and the class name is an error and will cause the entire CSS rule to be ignored.
Steven Parker
243,318 PointsSteven Parker
243,318 PointsCan you provide a link to the challenge for testing?