Lesson 8.2 background-image


#1

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

The error is: Did you add a background-image property to the .hero selector in main.css?

.hero a {
    background-image: url("https://s3.amazonaws.com/codecademy-content/projects/make-a-website/lesson-2/bg.jpg");
  color: #00FFAA;
    font-size: 1.25em;
    text-decoration: none;
  font-family: 'Trebuchet MS', Helvetica, sans-serif;  
}

I originally tried with the background-image line right below the font-family (still inside the selector).


#2

The above is in a descendent selector rule. Insert the property in the .hero selector rule:

.hero {

}

#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.