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


#1

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.


#2

Could you paste I so we can have a look


#3

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?


#4

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;
}


#5

You haven't specified which element you are styling.


#6

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


#7

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