Learn CSS Variables by Building a City Skyline - Step 9

Tell us what’s happening:

here’s my code

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

Your code so far

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

  <body>
    <div class="background-buildings"></div>
  </body>
</html>
/* file: styles.css */
* {
  border: 1px solid black;
  box-sizing: border-box;
}

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

/* User Editable Region */

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


/* User Editable Region */

    

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36

Challenge Information:

Learn CSS Variables by Building a City Skyline - Step 9

Ok, what are you trying to do with your code?

What is background-buildings specifically?

I’m getting this feedback with your code:

// running tests
1. You should use the background-buildings class to select the correct element.
2. Your .background-buildings element should have a width of 100%.
3. Your .background-buildings element should have a height of 100%.
// tests completed
You should use the background-buildings class to select the correct element.

that’s what I’m getting as well. Despite the fact that the class is clearly there.

Is body also a class?

It’s related to this step:
https://www.freecodecamp.org/learn/2022/responsive-web-design/learn-responsive-web-design-by-building-a-piano/step-13

:face_without_mouth: …Thank you. I don’t know how I missed that

It’s all part of the process :+1: