Learn CSS Variables by Building a City Skyline - Step 40. How to set background of class property using linear-gradient?

You should put the background below the background-color.

The background css property is a shorthand for many background-related CSS properties (see image below)

If you wrote background-color below background, some of the values you wrote on background will be overwritten by the new values.

I hope you get what I mean.

Hope that helps :grin:

1 Like