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 trialNicholas Elwick
6,103 PointsBasic Attribute Selectors
In the video the selector syntax is shown as: input [type="text"] { color: red; }
But the code challenge wont accept this syntax. Instead it accepts: input, type="text { color: red; }
I don't know if this is just a problem for me or not?
2 Answers
Dane Parchment
Treehouse Moderator 11,077 PointsCan you please show me your code so that I can help you out? I don't know if you did anything wrong without seeing your code. Now I can say to check and make sure you didn't mistype anything, as that can easily lead to errors popping up.
Jason Anello
Courses Plus Student 94,610 PointsHi Nicholas,
The challenge never asks for that css. What task are you referring to?
Your selector has a space in it between input
and [type="text"]
which would be a problem.
It should be input[type="text"] { color: red; }
However I don't see any task requesting that styling.