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 trialAdam Thomas
957 PointsCustomizing Colors and Fonts
Error: Bummer! Be sure you set the font size to 1.75em for your h1.
h1 { font-family: 'Playfair Display SC', sans-serif; font-size: 1.75em; font-weight: normal; }
I'm not sure where the error is? It seems pretty straight forward.
7 Answers
Daniel Burt
3,699 Points<link href='http://fonts.googleapis.com/css?family=Playfair+Display+SC:400,900' rel='stylesheet' type='text/css'>
If that doesn't work, perhaps try a different browser?
Adam Thomas
957 PointsThe (3rd) challenge question is: Set the size of your H1 to 1.75em and the weight to normal.
So under: h1 { font-family: 'Playfair Display SC', sans-serif; (challenge question 2: passed)
I enter: font-size: 1.75em; font-weight: normal; }
I get this error: Bummer! Be sure you set the font size to 1.75em for your h1.
I tried using double quotes around the font-family type but that made no difference.
Daniel Burt
3,699 PointsI just redid the challenge, and this is my code which worked:
h1 {
font-family: "playfair display sc", sans-serif;
font-size: 1.75em;
font-weight: normal;
}
This is your code which didn't:
h1 {
font-family: 'Playfair Display SC', sans-serif;
font-size: 1.75em;
font-weight: normal;
}
Apart from me not using capitals and double quotes, I don't see the difference. Maybe try that? The engine can be fussy sometimes.
Thong Tran
8,713 Pointsboth did not work!
lasselaube
Courses Plus Student 22,849 PointsYour Code looks fine. I have used your code without problems. Try again.
Adam Thomas
957 PointsI apologize, this is annoying for something seemingly so easy. I used your exact syntax and again received the same the error. Is this the URL you used for the first challenge question?
<link href='http://fonts.googleapis.com/css?family=Playfair+Display+SC' rel='stylesheet' type
I'll try a different font for now and see if that makes a difference.
Adam Thomas
957 PointsI used the same code in FireFox and it worked. Thanks for your help!
Daniel Burt
3,699 PointsHave you tried double quotes rather than apostrophes? :)