Learn CSS Variables by Building a City Skyline - Step 108

It keeps telling me that I need to add a second gradient. I even copied the previous one that passed, but it still tells me I need to add another gradient - help.

Skjermbilde 2023-07-05 190839

.fb5 {
  width: 10%;
  height: 33%;
  position: relative;
  right: 10%;
  background: repeating-linear-gradient(
      var(--building-color2),
      var(--building-color2) 5%,
      transparent 5%,
      transparent 10%
    ),
    repeating-linear-gradient(
      90deg,
      var(--building-color2),
      var(--building-color2) 12%,
      var(--window-color2) 12%,
      var(--window-color2) 44%
    );
}

PROBLEM:

.fb6 {
  width: 9%;
  height: 38%;
  background-color: var(--building-color3);
  background: repeating-linear-gradient(
      var(--building-color3),
      var(--building-color3) 10%,
      transparent 10%,
      transparent 30%
      ), 
      repeating-linear-gradient(
      var(--building-color3),
      var(--building-color3) 10%,
      var(--window-color3) 10%,
      var(--window-color3) 30%
    );
}

Your browser information:

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

Link to the challenge:

Welcome to our community!

Post a link to the challenge.

oh, sorry, edited it out by accident.

Link to the challenge:

You have deleted the direction value of 90deg in the first linear gradient.

Ah, Iā€™m just blind, hah. Thanks!

1 Like

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