Stuck on step 8 of CSS in Make a website


#1


https://www.codecademy.com/en/courses/make-a-website/lessons/closer-look-css/exercises/background-image?action=resume

Can someone please tell me what is wrong with my code? This is the error message:
Did you add a background-size property of cover to the .hero selector in main.css?
Even though I added the background-size: cover; property that the instructions wanted, below the background-image property.

Here is my code:

.hero {
	padding: 250px 0;
	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;
}

#2

HI you should add a semicolon after the selector beckground-image: url(..)


#3

general rule i use now, is if you notice the auto coloring or indent is off, there is quotes, semicolon, period or something along those lines missing somewhere. Just backtrack your code from where you notice something is weird.

hope this helps!


#5

You're missing your ; after your URL to close the action and let the function of background-size: cover; run properly.

Let us know if your issue is resolve and what did you do to solve it!

Happy Coding!


#6

Thanks guys, adding the semicolon worked! :slight_smile:


#7

I did the same things! Thanks guys!


#8