Hey,
(I hope this belongs here).
I'm a student and ran into trouble with CSS coding in Codecademy. I could only finish 35% of the course. It says there's a mistake in my code, but I can't find any. I followed the instructions pretty precisely. I clicked on "run" very often, so it suggests to finish the code for you - even then, it doesn't work.
It is called "Learn HTML & CSS: Part I", this is the lesson I am taking. There is a chapter on fonts called "Fonts". This is the code in question:
h1 {
color: #FFF;
font-family: "Playfair Display", serif;
font-size: 32px;
padding-top: 100px;
text-align: left;
width: 60%;
}
Is there a mistake in the font-family? I linked this in index.html:
<link href="https://fonts.googleapis.com/css?family=Playfair+Display" type="text/css" rel="stylesheet" >
It says there is something wrong with this step, where you define the font-family in the main header.
Anything wrong?
Greetings,
PeterParker