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 Font Properties

Next, select the h1 and set the font to be in small caps.

/* Complete the challenge by writing CSS below */ P { font-family: Baskerville, Times New Roman, Times, serif; } h1 { font: italicize small-caps bold 1em Baskerville, Times New Roman, Times, serif; }

5 Answers

Laura Cressman
Laura Cressman
12,548 Points

To change the capitulation, you could try the text-transform property with the value lowercase. Does this solve your problem?

James Barnett
James Barnett
39,199 Points

Laura Cressman - small caps and lowercase aren't the same thing.

Laura Cressman
Laura Cressman
12,548 Points

Oh-my bad! What is the difference? Thank you for clarifying :)

James Barnett
James Barnett
39,199 Points

I see a few issues:

  • The value is italic not italicize
  • You want to italicize a <p> element not an <h1>

h1 { font: italic small-caps bold 1em Baskerville, Times New Roman, Times, serif; }

  • You don't need all of this instead use:
    • font-variant property with the small-caps value.
    • font-style property with the italic value

h1 { font: italic small-caps bold 1em Baskerville, Times New Roman, Times, serif; }

Sean T. Unwin
Sean T. Unwin
28,690 Points

You're looking for the font-variant property.

Edit: Ohh! You want to use italic not italicize.

Sean T. Unwin
Sean T. Unwin
28,690 Points

James Barnett , Why not use font? It's the shorthand for what you just said. Saying "you don't need all of this" seems to imply it's wrong which it isn't, it's a matter preference.

And seriously someone downvoted my original comment when it's technically correct without knowing which element needed to be italic?

James Barnett
James Barnett
39,199 Points

The question doesn't ask you to define a font-family or size.