Having Problems with my background-size: cover



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.


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;


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!


You're welcome.

Have fun coding. :slight_smile: