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

abmsc86
abmsc86
4,949 Points

Coding font stack in code challenge

Hello there.

I am having a problem with the first task where I need to create a rule by coding a font stack with Baskerville, Times New Roman, and serif at the paragraph attribute in the html page.

I have written this code which I assume should be correct: p { font-family: Baskerville, "Times New Roman", serif; }

However, the code is not accepted and the "serif" is highlighted as red (which I assume is the error). I don't understand how it came to this. This is supposed to be the same code used in the instructional video.

Please help. :)

3 Answers

Keith Kelly
Keith Kelly
21,326 Points

I just looked at the task and it wants you to create a font stack with Baskerville, Times New Roman, Times, and serif.

I think you are just missing the Times font.

abmsc86
abmsc86
4,949 Points

Yes, I should have read the task more carefully. Thanks.

abmsc86
abmsc86
4,949 Points

Yes, I should have read the task more carefully. Thanks.