LearnCSS by building a city skyline step 51

This is the step:

Step 51

Gradient transitions often gradually change from one color to another. You can make the change a solid line like this:

  var(--first-color) 0%,
  var(--first-color) 40%,
  var(--second-color) 40%,
  var(--second-color) 80%

Add a linear-gradient to .bb2b that uses --building-color2 from 0% to 6% and --window-color2 from 6% to 9%.
So i’ve written this code:

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

But it continues to say that i should give a background property.

Can you post a link to the challenge. Next time when you post code follow the post I have below. It looked like you werent using double lines when using the variables, but it only looked like that because your code was not formatted

I’ve edited your code for readability. When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.

You can also use the “preformatted text” tool in the editor (</>) to add backticks around text.

See this post to find the backtick on your keyboard.
Note: Backticks (`) are not single quotes (').

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