Learn CSS Variables by Building a City Skyline - Step 108

Tell us what’s happening: Add another repeating gradient to this building; make it the same as the one you just added, except don’t add the 90deg direction and use your window color instead of the two transparent colors.

Your code so far

 .fb6 {
  width: 9%;
  height: 38%;
  background-color: var(--building-color3);
  background: repeating-linear-gradient(
    90deg,
    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:

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

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

Link to the challenge:

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 (').

some of your dashes are not the expected type.
Please use an English United States keyboard to make sure your dashes are the correct type. (the first two lines need to be fixed, so you can copy the dashes from the bottom two lines also)

1 Like

Thanks it worked I really appreciate. :saluting_face:

1 Like

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