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

CSS CSS Foundations Text, Fonts, and Lists Text Properties

CSS 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
James Barnett
39,199 Points

For reference

Imgur

Code Used:

h1{ 
  font-family: Times, serif; 
  font-size: 1em; 
  text-transform: capitalized;
}

I see 2 issues here:

  1. Cut the font-family and font-size properties as their is no mention of them in the instructions.
  2. It's text-transform: capitalize, no d
Nicole H
Nicole H
2,981 Points

Hi Caleb,

text-transform should be uppercase instead of capitalized.

Capitalize transforms the first character of each word to uppercase.

Thanks everyone, James you were correct.

h1{ font-family: Times, serif; font-size: 1em; text-transform: capitalize; }

Rose Hurst
Rose Hurst
5,658 Points

Hmmmm...Try 'Times New Roman' It has to be placed within single quotes because the name consists of more than one word.