Tell us what’s happening:
Hey, I’ve completed this project but still fails on some steps. I don’t know why it doesn’t pass any of the borders I selected for each different house section, also having trouble putting my chimney in top of my house. Can you please help me?
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 */
#house {
position: relative;
width: 500px;
height: 400px;
background-color: #d9c8a8;
border: 4px solid #654321;
margin: 40px auto;
}
#house > div {
position: absolute;
border: 2px solid #333;
background-color: #fff;
}
#roof {
top: 0;
left: 50%;
width: 300px;
height: 80px;
background-color: #a33;
transform: translateX(-50%);
}
#chimney {
top: 5px;
left: 60px;
width: 40px;
height: 120px;
background-color: #555;
border: ridge 3px black;
z-index: -1;
}
#window-1, #window-2 {
width: 80px;
height: 80px;
background-color: #add8e6;
top: 130px;
}
#window-1 {
left: 70px;
height: 60px;
width: 100px;
border: (2px inset #222);
background-color: #add8ec;
}
#window-2 {
right: 70px;
}
#door {
width: 120px;
height: 150px;
background-color: #8b4513;
bottom: 0;
left: 50%;
transform: translateX(-50%);
}
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/142.0.0.0 Safari/537.36
Challenge Information:
Build a House Painting - Build a House Painting