Learn CSS Variables by Building a City Skyline - Step 104

Tell us what’s happen On to the next building! It’s the green one in the foreground. Give it a repeating-linear-gradient with your building color from 0% to 5% , and transparent from 5% to 10% .ing:

On to the next building! It’s the green one in the foreground. Give it a repeating-linear-gradient with your building color from 0% to 5%, and transparent from 5% to 10%.

Your code so far

<!-- file: index.html -->

/* file: styles.css */
/* User Editable Region */

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

/* User Editable Region */

Your browser information:

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

Challenge Information:

Learn CSS Variables by Building a City Skyline - Step 104

here you have given two colors for each segment, you must write one single color

1 Like