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 trialCaleb King
32,777 PointsCSS Text Challenege issue
Hello the task is to transform the h1 element where each letter is capitalized. Below is my code but I keep getting an error.
/* Complete the challenge by writing CSS below */ h1{ font-family: Times, serif; font-size: 1em; text-transform: capitalized;
}
5 Answers
James Barnett
39,199 PointsFor reference
Code Used:
h1{
font-family: Times, serif;
font-size: 1em;
text-transform: capitalized;
}
I see 2 issues here:
- Cut the
font-family
andfont-size
properties as their is no mention of them in the instructions. - It's
text-transform: capitalize
, nod
Nicole H
2,981 PointsHi Caleb,
text-transform should be uppercase instead of capitalized.
Capitalize transforms the first character of each word to uppercase.
Caleb King
32,777 PointsThanks everyone, James you were correct.
ilyass mougar
Courses Plus Student 2,858 Pointsh1{ font-family: Times, serif; font-size: 1em; text-transform: capitalize; }
Rose Hurst
5,658 PointsHmmmm...Try 'Times New Roman' It has to be placed within single quotes because the name consists of more than one word.