Learn CSS Variables by Building a City Skyline - Step 112

Tell us what’s happening:
i have written according to the instructions but it is not working but i keep getting these messages:
You should give

.sky

a

radial-gradient

in the

background

property. You should give the

radial-gradient

a first color of

#ffcf33

. You should give the

radial-gradient

a second color of

#ffff66

at

21%

. You should give the

radial-gradient

a third color of

#bbeeff

at

100%

.what am i doing wrong
Your code so far

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.

.sky {

background: radial-gradient (

#ffcf33,

#ffcf33 20%,

#ffff66 21%,

#bbeeff 100%

)

}

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/118.0.0.0 Safari/537.36

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

Link to the challenge:
https://www.freecodecamp.org/learn/2022/responsive-web-design/learn-css-variables-by-building-a-city-skyline/step-112`Preformatted text`

Step 112

Give the sky class a radial-gradient. Use #ffcf33 from 0% to 20%, #ffff66 at 21%, and #bbeeff at 100%. This will add circular gradient to the background that will be your sun.

You are mising this , read agen … Use #ffcf33 from 0% to 20%

you can put in one line #ffcf33 0% 20%,

and you are mising the ) ; backticks in the end of the gradient…Hope this helps…

1 Like

i have tried but it is still not working

1 Like

format your css

when you done background: radial-gradient (
remove white space background: radial-gradient(
now the son should apear in the page ,and you good to go…
wach for white spaces they meter …

1 Like

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