Having Problems with my background-size: cover


#1

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

Hi there,

I'm not sure what I'm doing wrong here but I'm stuck on the below code . Can anyone help spot the mistake?

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


Replace this line with your code.


#2

I can't spot any error but you could give a space after the colon of font-family. Also, the last instrcuction for the exercise isn't done, yet.

color: #ffffff;


#3

Hey there! Not sure what was the problem before, as you mentioned too. I did reset the exercise thought and it seemed to work :slight_smile: Thanks for checking my code!


#4

You're welcome.

Have fun coding. :slight_smile: