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 trialJoseph Lowe
Courses Plus Student 2,170 PointsNext, 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
12,548 PointsTo change the capitulation, you could try the text-transform property with the value lowercase. Does this solve your problem?
James Barnett
39,199 PointsI see a few issues:
- The value is
italic
notitalicize
- 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 thesmall-caps
value. -
font-style
property with theitalic
value
-
ilyass mougar
Courses Plus Student 2,858 Pointsh1 { font: italic small-caps bold 1em Baskerville, Times New Roman, Times, serif; }
Sean T. Unwin
28,690 PointsYou're looking for the font-variant property.
Edit: Ohh! You want to use italic
not italicize
.
Sean T. Unwin
28,690 PointsJames 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
39,199 PointsThe question doesn't ask you to define a font-family or size.
James Barnett
39,199 PointsJames Barnett
39,199 PointsLaura Cressman -
small caps
andlowercase
aren't the same thing.Laura Cressman
12,548 PointsLaura Cressman
12,548 PointsOh-my bad! What is the difference? Thank you for clarifying :)