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

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.