Tell us what’s happening:
For step 44. Your #chimney should have a top value that puts it at the top of your #house.
The display is showing it behind based on the z-index of -1 and it is on top of the house based on my top positioning. Not sure why it isn’t registering.
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">
<link rel="stylesheet" href="styles.css">
<title>House Painting</title>
</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 */
#house {
width: 500px;
height: 400px;
top: 100px;
background-color: green;
position: relative;
border: 5px solid black;
}
#roof {
position: absolute;
top: 0;
background-color: #f2e1d0;
width: 500px;
height: 100px;
border: 5px solid black;
}
#chimney {
position: absolute;
width: 75px;
height: 95px;
border: 5px solid red;
top: -75px;
left: 20px;
background-color: red;
z-index: -1;
}
#window-1{
position: absolute;
top: 200px;
left: 30px;
height: 100px;
width: 100px;
border: 2px solid green;
background-color: white;
}
#window-2{
position: absolute;
top: 200px;
right: 50px;
height: 100px;
width: 100px;
border: 2px solid green;
background-color: white;
}
#door {
position: absolute;
height: 250px;
width: 125px;
border: solid 2px black;
background-color: yellow;
bottom: 0px;
right: 200px
;
}
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/143.0.0.0 Safari/537.36 Norton/143.0.0.0
Challenge Information:
Build a House Painting - Build a House Painting