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 trialJordan Hammond
2,278 PointsTransform the h1 so that the first letter of each word is capitalized.
Why isn't this code working?
h1::first-letter {
text-transform: uppercase;
}
or this
h1::first-letter {
text-transform: capitalize;
}
Uggghhh
2 Answers
Unsubscribed User
6,144 PointsCommented instead of answer, sorry my first message it was :)
Unsubscribed User
6,144 PointsBesides, the pseudo element ::first-letter doesn't concern the first letter of each word but only the first one.
Jordan Hammond
2,278 PointsThank you!
Kate Hoferkamp
5,205 PointsAntoine is super correct! You don't have to use any pseudo classes to complete the first step in the code challenge. It was just looking for a text-transform on the h1 to capitalize.
Unsubscribed User
6,144 PointsUnsubscribed User
6,144 PointsThe property
capitalize
does what you want, you don't need to add the pseudo-element::first-letter
.Something like this should work :