House Painting step 44 chimney top value test failing

Hi, I am stuck on step 44 of the House Painting project.

The test says: “Your #chimney should have a top value that puts it at the top of your #house.”

I have already set position: absolute and top: 0px for the #chimney. My stylesheet is correctly linked and the chimney is inside the #house.

But the test is still failing. Can someone please help me understand what I am missing?

Here is my CSS code:

#house {

position: relative;

width: 500px;

height: 400px;

background-color: lightblue;

border: 3px solid black;

}

/* All children absolute */

#house > div {

position: absolute;

}

/* Roof */

#roof {

width: 500px;

height: 100px;

border: 2px solid black;

background-color: brown;

top: 0;

}

/* Chimney */

#chimney {

width: 60px;

height: 100px;

border: 2px solid black;

background-color: gray;

top: 0;

left: 50px;

z-index: -1;

}

/* Windows */

#window-1 {

width: 80px;

height: 80px;

border: 2px solid black;

background-color: white;

top: 120px;

left: 80px;

}

#window-2 {

width: 80px;

height: 80px;

border: 2px solid black;

background-color: white;

top: 120px;

right: 80px;

}

/* Door */

#door {

width: 100px;

height: 150px;

border: 2px solid black;

background-color: darkred;

bottom: 0;

left: 200px;

}

The problem is the z-index: -1 on your chimney. Change it to z-index: 1 (or remove it) so the chimney sits on top of the house.

The top of the house is at 0, so what would your top setting need to be to put the bottom of the chimney flush with the top of the house?

z-index is not the problem, please test your suggesions before writing them

removed by moderator

It is great that you solved the challenge, but instead of posting your full working solution, it is best to stay focused on answering the original poster’s question(s) and help guide them with hints and suggestions to solve their own issues with the challenge. How to Help Someone with Their Code Using the Socratic Method

We are trying to cut back on the number of spoiler solutions found on the forum and instead focus on helping other campers with their questions and definitely not posting full working solutions.