Tell us what’s happening:
I am stuck I keep getting an error stating I should not alter the 1st repeating gradient. However I have followed the example code which requires you to delete the closed } and and add a comma, before adding the 2nd repeating gradient. This topic has been raised before but the feedback did not work either, can someone help please?
Your code so far
.fb1c {
width: 100%;
height: 80%;
background: repeating-linear-gradient(
90deg,
var(–building-color4),
var(–building-color4) 10%,
transparent 10%,
transparent 15%
),
repeating-linear-gradient(
var(–building-color4)0%,
var(–building-color4)10%,
var(–window-color4)10%,
var(–window-color4)10%;
}
WARNING
The challenge seed code and/or your solution exceeded the maximum length we can port over from the challenge.
You will need to take an additional step here so the code you wrote presents in an easy to read format.
Please copy/paste all the editor code showing in the challenge from where you just linked.
Replace these two sentences with your copied code.
Please leave the ``` line above and the ``` line below,
because they allow your code to properly format in the post.
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 78
I had the parenthesis there perhaps I did not copy it into my question. I changed the 10% to 90% but it still does not work. The error message about not changing the first gradient still stands. See my amended code
rather than copy paste your code, you should use code snippet.
Using preformatted text or (```) between your code. It is hard to judge based on your copy paste.
Thank hbar1sr, I added in the opening bracket and removed the last semi colon. Harta also helped solve this issue, as I had several things wrong in my code, Thanks again!!