8. Every time I type in the URL, it says it does not work

Everytime I type in the URL, it says it does not work. I’ve remembered to put quotes around it, and it’s under the .hero section.

1 Like

Could you paste I so we can have a look

1 Like

I am having this problem too. Here is what my code looks like:

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

p {
font-size: 2rem;

}

Anyone have any ideas what I’m doing wrong?

Hi,

The background link is fine, but you have in your .hero class selector after defining your background-url two curly brackets } and { . Delete them, because font-family, padding and margin in your code don’t have a class selector and they should be part of the .hero class selector :slightly_smiling:

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

1 Like

You haven’t specified which element you are styling.

1 Like

Okay now that makes since because I been having that same issue.

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