No evaluation on exercise...Cannot unlock next lesson (solved)


#1


https://www.codecademy.com/courses/learn-html-css/lessons/adding-images/exercises/background-attachment


I am entering the code...

cover {

background-attachment: fixed;
}

..along with all the other properties that are already there under the cover id selector.

I get NO evaluation. Just a forever spinning loading circle that eventually stops and nothing happens.
When I refresh the mini browser I can see that the background image is now fixed when I scroll, but I get no acknowledgement that the code was correct and I cannot advance to the next lesson (it remains locked). Please help! I want to continue learning code :frowning:


#cover {
  background: url("https://s3.amazonaws.com/codecademy-content/courses/web-101/unit-8/htmlcss1-img_bicycles.jpeg") no-repeat top center;
  background-size: cover;
  height: 900px;
  position: relative;
  top: -55px;
  width: 100%;
  background-attachment: fixed;
}


#2

I solved my own problem by instead using just...

background: fixed;

instead of...

background-attachment: fixed;

Both rules seem to work (the background image is fixed when scrolling), but only the former rule grants a green checkmark and advancement to the next exercise...I was stuck in the same place for a week thanks to this.

It should be noted that the instructions and the dialogue in the lesson says to use background-attachment as the property, which does not work.


#3

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