Lesson 8.2 background-image



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).


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

.hero {



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