Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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 90,825 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 90,825 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.