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

Erez Bouskila
Erez Bouskila
3,809 Points

Code challenge: Next, select the h1 and set the font to be in small caps bummer!

h1 { font-variant: small-caps; } is not working

3 Answers

Jonathan Grieve
MOD
Jonathan Grieve
Treehouse Moderator 91,252 Points

Hello Erez

That's very odd. If indeed there's only one H1 element to target that code you've written should work.

Is your HTML h1 element supposed to be set to a class or an id? Is there another code somewhere else that's maybe causing this challenge to error? :-)

Erez Bouskila
Erez Bouskila
3,809 Points

Here is my CSS:

p { font-family: Baskerville, "Times New Roman", Times, serif; }
h1 { font-variant: small-caps; }

the h1 is not set as a class or id

Jonathan Grieve
Jonathan Grieve
Treehouse Moderator 91,252 Points

Hello Erez,

I've fixed your post so we could see the HTML inside it. You can check out the markdown code so you can post your code more clearly. Check it out :-)

But I can't see any reason in that code that the challenge should be failing. Perhaps this is a bug. Check out Support link on the bottom left of your screen on any page, giving the course and stage and they might be able to find something to help you. :)

Erez Bouskila
Erez Bouskila
3,809 Points

Hi Jonathan,

Thanks for the help and the info :)

It appears to be working now.