Learn CSS Variables by Building a City Skyline - Step 51

Tell us what’s happening:
Describe your issue in detail here.

Trying to set a linear gradient background with specific change points. I am not succeeding.

  **Your code so far**

.bb2b {
width: 100%;
height: 100%;
background: linear-gradient(
var(–building-color2, 0%),
var(–window-color2, 6%)
)

  **Your browser information:**

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36

Challenge: Learn CSS Variables by Building a City Skyline - Step 51

Link to the challenge:

Take a look at example in the task once more.

Your percentage values are placed incorrectly,
and you need to use each variable twice, as in the example.

3 Likes

Hi admit,
Thank you for your answer, it was very helpfull.

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