Learn CSS Variables by Building a City Skyline - Step 112

Tell us what’s happening:

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.

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

Challenge Information:

Learn CSS Variables by Building a City Skyline - Step 112

Hey there,

Please update the message to include your code. The code was too long to be automatically inserted by the help button.

When you enter a code, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.

You can also use the “preformatted text” tool in the editor (</>) to add backticks around text.

See this post to find the backtick on your keyboard.
Note: Backticks (`) are not single quotes (').

Not sure why this issue is going since I gave the correct attributes and values for the .sky class. Please advise, there is more of the code bellow the sky class but no point in sharing. Please advise and assist. Thank u

:root {
–building-color1: #aa80ff;
–building-color2: #66cc99;
–building-color3: #cc6699;
–building-color4: #538cc6;
–window-color1: #bb99ff;
–window-color2: #8cd9b3;
–window-color3: #d98cb3;
–window-color4: #8cb3d9;
}

  • {
    box-sizing: border-box;
    }

body {
height: 100vh;
margin: 0;
overflow: hidden;
}

.background-buildings, .foreground-buildings {
width: 100%;
height: 100%;
display: flex;
align-items: flex-end;
justify-content: space-evenly;
position: absolute;
top: 0;
}

.building-wrap {
display: flex;
flex-direction: column;
align-items: center;
}

.window-wrap {
display: flex;
align-items: center;
justify-content: space-evenly;
}
.sky {
background: radial-gradient (
#ffcf33 0%,
#ffcf33 20%,
#ffff66 21%,
#bbeeff 100);

Nice to see you back in the forum @blagoje.mirosavljev !

Two small issues with the code.

There should not be a space after radial-gradient

The % is missing from the last color stop.

Wishing you good progress.

2 Likes

Welcome back to the forum @blagoje.mirosavljev

All the styling selectors for the foreground and background buildings is missing from your code.

Please reset the step and try again.

Happy coding

Thank u, that solved the issue. All the best! :slight_smile:

2 Likes