Tell us what’s happening:
Quest:
You can add multiple gradients to an element by separating them with a comma (
,) like this:gradient1( colors ), gradient2( colors );Add a
repeating-linear-gradientto.fb1cbelow the one that’s there; use your--building-color4from0%to10%and--window-color4from10%and90%. This will fill in behind the gradient you added last.
but, at the end, it shows a warn message, and i don’t understand:
You should not alter the first
repeating-linear-gradient.
Your code so far
.fb1c {
width: 100%;
height: 80%;
background:
repeating-linear-gradient(
90deg,
var(--building-color4) 0%,
var(--building-color4) 10%
),
repeating-linear-gradient(
90deg,
var(--window-color4) 10%,
var(--window-color4) 90%
);
}
Your browser information:
User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36
Challenge Information:
Learn CSS Variables by Building a City Skyline - Step 78