Learn CSS Variables by Building a City Skyline - Step 15

I don’t know what I’m doing wrong

   **Your code so far**
/* file: index.html */
<!DOCTYPE html>
<html lang="en">    
   <meta charset="UTF-8">
   <title>City Skyline</title>
   <link href="styles.css" rel="stylesheet" />   

   <div class="background-buildings">
     <div class="bb1">
       <div class="bb1a"></div>
       <div class="bb1b"></div>
       <div class="bb1c"></div>
       <div class="bb1d"></div>
/* file: styles.css */
* {
 border: 1px solid black;
 box-sizing: border-box;

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

.background-buildings {
 width: 100%;
 height: 100%;

.bb1 {
 width: 10%;
 height: 70%;
 display: flex;
 flex-direction: column;
 align-items: center;
 --building-color1: #999;
.bb1a {
 width: 70%;
 height: 10%;
var(--building-color1): #999;
.bb1b {
 width: 80%;
 height: 10%;

.bb1c {
 width: 90%;
 height: 10%;

.bb1d {
 width: 100%;
 height: 70%;
   **Your browser information:**

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.1.2 Safari/605.1.15

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

Link to the challenge:

In your own words please describe the step you were trying to take.
For eg.
I was trying to make …
I was trying to change…

var(--building-color1): #999;

var(–building-color1) is a value
and #999 is also a value

More like you replaced #999 with var(–building-color1)

what the challenge is asking you to do is set the background-color property value to var(–building-color1)

and the syntax for that is

property: value;

property = background-color
value= var(–building-color1)

fix in this values in the syntax and i hope it helps


Hi @dannee,

Just a quick tip, enclose any code related keyword with backticks ( ` ) to make it easier to interpret the code.

Double dashes gets converted into one long dash.

It would be easier to read --building-color1 as that would prevent any miscommunication since if you write (–building-color1) it looks like one dash


Please don’t share code solutions to fCC challenges here. Instead try to answer questions with hints or tips of some kind rather than showing a direct solution.