Moin1
1
Tell us what’s happening:
The code is not passing although it’s correct! Why?
Your code so far
<!-- file: index.html -->
/* file: styles.css */
/* User Editable Region */
.fb1c {
width: 100%;
height: 80%;
background:
repeating-linear-gradient(
90deg,
var(--building-color4) 0%,
var(--building-color4) 10%,
transparent 10%,
transparent 15%
),
repeating-linear-gradient-2(
90deg,
var(--building-color4) 0%,
var(--building-color4) 10%,
var(--window-color4) 10%,
var(--window-color4) 90%
);
}
/* 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/125.0.0.0 Safari/537.36
Challenge Information:
Learn CSS Variables by Building a City Skyline - Step 78
toan
2
There are only repeating-linear-gradient
CSS function, there are no repeating-linear-gradient-2
function.
The second gradient doesn’t have 90deg
direction.
Moin1
3
I keep trying like this:
.fb1c {
width: 100%;
height: 80%;
background:
repeating-linear-gradient(
90deg,
var(--building-color4) 0%,
var(--building-color4) 10%,
transparent 10%,
transparent 15%
),
repeating-linear-gradient(
90deg,
var(--building-color4) 0%,
var(--building-color4) 10%,
var(--window-color4) 10%,
var(--window-color4) 90%
);
}
but it doesn’t work, instead it keeps telling like this:
I don’t understand the reason. Could it be cache? I have removed all the browser cache already!
You were not asked to add the gradient direction.
toan
5
The second gradient doesn’t have 90deg
direction.
So, delete 90deg,
line
2 Likes
Moin1
6
Thank you so much. It worked!
1 Like
system
Closed
7
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.