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

help please

Add a body selector and set the font family to 'Nunito' with a sans-serif fallback. i have been at this all day can someone show me how to do it? i have watched the video like 15 times and i am still not getting it

8 Answers

sorry i forgot thanks!

marsha spell - It's hard to know where you are having issues without first seeing your code.

You might find this syntax reference helpful to compare against your code.

Justin Horner
STAFF
Justin Horner
Treehouse Guest Teacher

Hello Marsha,

Without seeing your code it's hard to determine what the problem could be.

A few tips:

  • Make sure you place Nunito in single quotes and uses a capital N.
  • Make sure you are separating the families with a comma.

If these tips don't help please post your code so I can help you further.

Hi ! Marsha , i suggest u write your codes in post, what you r writing , it's easy than

code redacted this is the right answer.

{font-family: 'Nunito' sans-serif;} this goes in the css

tugba birkel - Remember our goal on the forum is give help not answers, next time try giving an explanation and/or a hint instead.

Need more explanation on the distinction check this out.

My code is:

h1 { font-family: 'Roboto', 'sans-serif'; }

and I get this error: Bummer! Be sure to include sans-serif as a fallback for your font.

What I am doing wrong ?!

later edit: I have removed the commas from sans-serif and it worked. :/

{font-family: 'Nunito' sans-serif;} OK HERE ITS. NOW DO I PUT IT IN THE CSS OR HTML PAGE??

marsha spell - You forgot the comma between your 2 font families.

For future reference, in online forums and emails, writing in ALL CAPS is often interrupted as yelling.

marsha spell - You forgot the comma between your 2 font families.

Hi there. I'n having the same problem as Marsha was. Would someone be able to explain to me why the code I have put in is incorrect?

'''html <title>Smells Like Bakin' Cupcake Company</title> <link rel="stylesheet" href="css/normalize.css" type=text/css"media="screen"> <link rel="stylesheet" href="css/grid.css" type=text/css" media="screen"> <link href='//fonts.googleapis.com/css?family=Nunito' rel='stylesheet' type='text/css'> <link rel="stylesheet" href="style.css" type="text/css" media="screen">'''