Stuck on step 8 of CSS in Make a website


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-size: cover;


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


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!


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!


Thanks guys, adding the semicolon worked! :slight_smile:


I did the same things! Thanks guys!