Build a House Painting - Build a House Painting

Tell us what’s happening:

#chimney {
position: absolute;
top: -70px;
left: 60px;
width: 50px;
height: 100px;
background-color: #5a2d0c;
border: 2px solid black;

z-index: -1;

}

This is my code and it is giving me an error:

  1. Your #chimney should have a top value that puts it at the top of your #house.

What should be the value ?

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>Simple House</title>
    <link rel="stylesheet" href="styles.css">
</head>
<body>
    <div id="house">
        <div id="roof"></div>
        <div id="chimney"></div>
        <div id="window-1"></div>
        <div id="window-2"></div>
        <div id="door"></div>
    </div>
</body>
</html>

/* file: styles.css */
/* General House Styles */
#house {
    position: relative;
    width: 500px;
    height: 400px;
    background-color: #8B0000;
    border: 2px solid black;
    margin: 50px auto;
}

/* Roof */
#roof {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 250px solid transparent;
    border-right: 250px solid transparent;
    border-bottom: 150px solid brown;
}


#chimney {
    position: absolute;
    top: -70px;
    left: 60px;
    width: 50px;
    height: 100px;
    background-color: #5a2d0c;
    border: 2px solid black;
    z-index: -1;
}

/* Windows */
#window-1, #window-2 {
    position: absolute;
    width: 80px;
    height: 80px;
    background-color: lightblue;
    border: 2px solid black;
}

#window-1 {
    top: 150px;
    left: 80px;
}

#window-2 {
    top: 150px;
    right: 80px;
}

/* Door */
#door {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 150px;
    background-color: #654321;
    border: 2px solid black;
}

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36

Challenge Information:

Build a House Painting - Build a House Painting

Hey,
The chimney should have the same top and height values. You are also having some errors with your roof, which I think you’ll figure it out.
Good luck!