Fallback font (Cafe Menu step 60)

So, I’ve read the hint’s and I still don’t know how to add the fallback font. I’ve already added serif to it. What next?

My code:

h1, h2, {
  font-family: Impact; font-family: serif;
}

Link to the challenge:
Learn Basic CSS by Building a Cafe Menu: Step 60 | freeCodeCamp.org

2 Likes

Just add the second after the first font (seperated with a comma)

You’ve structured font-family wrong, this is how you write font family with fallbacks.

h1, h2, h3{
font-family: Arial, sans-serif:
}

Use commas between each font instead of making two font family properties. Also don’t add a comma to the last heading tag, it isn’t needed.

1 Like

It was just one minor detail that was keeping me off. It was the comma for the last heading tag along with erasing font-family I’ve noticed it’s the little things that keep me from getting the code correct, your advice was extremely helpful, thank you! :slightly_smiling_face:

1 Like

STEP 60

FALLBACK IS serif

It is great that you solved the challenge, but instead of posting your full working solution, it is best to stay focused on answering the original poster’s question(s) and help guide them with hints and suggestions to solve their own issues with the challenge.

We are trying to cut back on the number of spoiler solutions found on the forum and instead focus on helping other campers with their questions and definitely not posting full working solutions.

The solution has been removed from your post.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.