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.
Could you paste I so we can have a look
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
.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;
}
You haven’t specified which element you are styling.
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.