Tell us what’s happening:
I can’t solve the number 40 of these test questions. It says; 'Your #chimney should have a top value that puts it at the top of the house. I tried putting in different values but they didn’t work. What do you think I should do please?
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='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 */
#house {
position: relative;
border: 5px solid black;
background-color: #ffc107;
width: 500px;
height: 400px;
}
#chimney {
position: absolute;
width: 20px;
height: 400px;
border: 5px solid black;
background-color: #8d6e63;
top: 0;
left: 140px;
z-index: -1;
}
#roof {
position: absolute;
top:0;
left: 0;
width: 0;
height: 0;
border: 100px solid transparent;
background-color: #000;
}
#window-1 {
position: absolute;
top: 80px;
left: 40px;
width: 40px;
height: 40px;
border: 2px solid black;
background-color: skyblue;
}
#window-2 {
position: absolute;
top: 80px;
right: 40px;
width: 40px;
height: 40px;
border: 2px solid black;
background-color: skyblue;
}
#door {
position: absolute;
bottom: 0;
left: 100px;
width: 50px;
height: 100px;
border: 5px solid black;
background-color: brown;
}
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/138.0.0.0 Safari/537.36
Challenge Information:
Build a House Painting - Build a House Painting
https://www.freecodecamp.org/learn/full-stack-developer/lab-house-painting/build-a-house-painting