Tell us what’s happening:
Describe your issue in detail here.
My solution is wrong and I can’t figure out why,
I did everything as written in the task, but writes an error
“You want to add the same gradient to the next two sections. Instead of doing that, create a new class selector called bb1-window
, and move the height
and background
properties and values from .bb1a
to the new class selector.”
/* file: styles.css */
.bb1-window {
height: 10%;
background: linear-gradient(
var(--building-color1),
var(--window-color1)
);
}
.bb1a {
width: 70%;
height: 10%;
background-color: var(--building-color1);
background: linear-gradient(
var(--building-color1),
var(--window-color1)
);
}
User Agent is: <code>Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.0.0 Safari/537.36</code>
**Challenge:** Learn CSS Variables by Building a City Skyline - Step 41
**Link to the challenge:**
https://www.freecodecamp.org/learn/2022/responsive-web-design/learn-css-variables-by-building-a-city-skyline/step-41