4/10 Is just giving me error


#1

1
body {
2
height: 100%;
3
margin: 0;
4
text-align: center;
5
width: 100%;
6
}
7

8
h1 {
9
font-family: palatino,'Palatino Linotype', serif;
10
}
11

12
h2 {
13
font-size: 32px;
14
}
15

16

17
.hero {
18
padding: 250px 0;
19
margin: 30px;
20
}
21

22

23
p {
24

25
}
26

27
.hero a {
28
color: #00FFAA;
29
font-size: 24px;
30
text-decoration: none;
31
}
32

33

Did you add a font-family property of Palatino with fall-back fonts of 'Palatino Linotype' and serif?
Run

`


#2

It will be more clear if you could copy your code from the codeacademy edior. But for now just try to put capital P in your first palatino and see.


#3

Ya I tried that and it still didn't work


#4

It will be more clear if you could copy and paste your code from the codeacademy editor. Can you please do that.
Try this:

body {
height: 100%;
margin: 0;
text-align: center;
width: 100%;
}
h1 { font-family: Palatino, 'Palatino Linotype', serif; 
color: rgb(49,105,163);
font-size: 56px; 
}
h2 {
font size: 56px;
color:#ffffff;
.hero font-family: 'Trebuchet MS', Helvetica, sans-serif;
font-size: 56px;
padding: 250px 0;
margin: 30px;
color:#ffffff;
}
p {font-size: 2rem;
color:#ffffff;
}
.hero {background-image: url(https://s3.amazonaws.com/codecademy-content/projects/make-a-website/lesson-2/bg.jpg);
background-size: cover;
color: #ffffff;
font-size: 1.25em;
text-decoration: none;
}

#5

Ok thank you very much


#6

@jd2422 You welcome :wink:


#7

Hey um @fndiaye2016 it didn't work :confused:


#8

what is the error message ? Can you post the error message or a screen shot.


#9

Um how do I send a screen shot?


#10

But this is what it said. Did you add a font-family property of Palatino with fall-back fonts of 'Palatino Linotype' and serif?


#11

Now try this.Should work.

body {
	height: 100%;
	margin: 0;
	text-align: center;
	width: 100%;
}

h1 {
	font-size: 32px;
  font-family: Palatino, 'Palatino Linotype', serif;
}

h2 {
	font-size: 32px;
}


.hero {
	padding: 250px 0;
	margin: 30px;
}


p {

}

.hero a {
	color: #00FFAA;
	font-size: 24px;
	text-decoration: none;
}

#12

It didn't work. Is it a bug or something or am I missing something?


#13

Please paste in your updated code and error


#14

Um how do I do that?


#15

Um how do I do that?


#16


#17

Ok I will do that now


#18

`body {
	height: 100%;
	margin: 0;
	text-align: center;
	width: 100%;
}

h1 {
	font-size: 32px;
  font-family: Palatino, 'Palatino Linotype', serif;
}

h2 {
	font-size: 32px;
}


.hero {
	padding: 250px 0;
	margin: 30px;
}


p {

}

`

#19

Your code looks good. Try to refresh your browser then align the font-family to make it align with the font-size above.
And also make sure the <h1> selector exists in our html code.


#20

I did as you said but it said (Did you add a font-family property of Palatino with fall-back fonts of 'Palatino Linotype' and serif?) and I don't understand :confused: