Build a House Painting, Chimney Issue, #44, Bug?

Tell us what’s happening:

Chimney issue #44. This is the error: “Your #chimney should have a top value that puts it at the top of your #house.” I have tried multiple options like setting top: 0; though using a negative number makes the most sense visually, I’ve tried positive numbers, and there is no change. I’ve seen other posts on this issue with no answer or a link to GitHub with code that structurally looks like what I’ve done.

Your code so far

<!-- file: index.html -->
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>House Painting</title>
    <link rel="stylesheet" href="styles.css">
</head>
<body>
 <div id="house">
    <div id="chimney"></div>
    <div id="roof"></div>
    <div id="window-1"></div>
    <div id="window-2"></div>
    <div id="door"></div>
 </div>

</body>
</html>
/* file: styles.css */
body {
  background: skyblue;
  display: flex;
  justify-content: center;
  align-items: center;
  width: auto;
  height: 100vh;
}

#house {
  position: relative;
  width: 500px;
  height: 400px;
  background-color: orange;
  border: 3px solid brown;
}

#chimney {
  position: absolute;
  width: 65px;
  height: 70px;
  border: 2px solid gray;
  background-color: lightgray;
  top: -50px;
  right: 80px;
  z-index: -1;
}

#roof {
  position: absolute;
  width: 100%;
  height: 90px;
  border: 2px solid gray;
  background-color: brown;
  top: 0;
}

#window-1 {
  position: absolute;
  width: 75px;
  height: 100px;
  border: 2px solid brown;
  background-color: yellow;
  top: 150px;
  left: 80px;
}

#window-2 {
  position: absolute;
  width: 75px;
  height: 100px;
  border: 2px solid brown;
  background-color: yellow;
  top: 150px;
  right: 200px;
}

#door {
  position: absolute;
  position: absolute;
  width: 80px;
  height: 150px;
  border: 2px solid darkgreen;
  background-color: green;
  bottom: 0;
  right: 50px;
}

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:150.0) Gecko/20100101 Firefox/150.0

Challenge Information:

Build a House Painting - Build a House Painting

GitHub Link: freeCodeCamp/curriculum/challenges/english/blocks/lab-house-painting/66d6a7a3e1aa411e94bf2346.md at main · freeCodeCamp/freeCodeCamp · GitHub

Hi @mindym,

Considering that all of the pieces of the house are relative to the house itself and the top of the house is at 0, what would the top of a chimney with a height of 70px need to be set at to put the bottom of the chimney flush with the top of the house?

Happy coding!