Lesson 7/10

<PLEASE USE THE FOLLOWING TEMPLATE TO HELP YOU CREATE A GREAT POST!>

<Below this line, add a link to the EXACT exercise that you are stuck at.>
https://www.codecademy.com/courses/make-a-website/lessons/closer-look-css/exercises/font-size

<Below this line, in what way does your code behave incorrectly? Include ALL error messages.>
Failed to execute ‘getComputedStyle’ on ‘Window’: parameter 1 is not of type ‘Element’.

```

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

h1 {
font-size: 32px;
font-family: Palatino,‘Palatino Linotype’,serif;
color: rgb(46,105,163);
}

h2 {
font-size: 56px;
color: ffffff;
}

.hero {
color: #ffffff;
padding:250px;
margin: 30px;
font-family: ‘Trebuchet MS’,Helvetica, sans-serif;
background-image: url(“https://s3.amazonaws.com/codecademy-content/projects/make-a-website/lesson-2/bg.jpg”);
background-size: cover;
}

p {
font-size: 2rem;
color: #ffffff;
}

.hero a {
color: #00FFAA;
font-size: 1.25em;
text-decoration: none;
}
#footer {
font-size: 0.75rem;
}

<do not remove the three backticks above>

Hex colors always have # in front of the code
You are missing the #

The color setting has been fixed, but the coding still fails with the same error message.

Try another browser,

If you still get the same error paste in your code again

This topic was automatically closed after 7 days. New replies are no longer allowed.