Learn CSS Variables by Building a City Skyline-Step 58

Step 58

Finally, on the border-bottom property of .bb2a, change the 1vw to 5vh and change the #000 color to your --building-color2 variable. There you go, now it looks good! At any time throughout this project, you can comment out or remove the border property you added to everything at the beginning to see what the buildings will look like when that gets removed at the end.
I don’t see where the problem is in this code.

bb2a {
border-bottom: 5vh solid --building-color2;
border-left: 5vw solid transparent;
border-right: 5vw solid transparent;

Hi there and welcome to the forum!

If you need help with a specific challenge, the best approach is to click the Help icon (which appears after you have submitted incorrect code three times). This will create a forum post which includes your full code, a direct link to the challenge and an opportunity to describe what you are having difficulty with.

Here you have not applied the variable correctly. Whenever you want to use a variable in your CSS, you need to include the var keyword and enclose the variable name in parentheses, for instance: var(--this-color).

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