Tell us what’s happening:
hello, I gave the chimney a top of -26% as seen from a forum post, but it failed, I also have issues in user story 39. It asks for adding a left or right property in #door. I added a left property of 200px, but it doesn’t pass. I am looking for assistance.
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 id="window-divider"></div>
</div>
<div id="window-2">
<div id="window-divider"></div>
</div>
<div id="door">
<div id="handle"></div>
</div>
</div>
</body>
</html>
/* file: styles.css */
body {
display: flex;
align-items: center;
justify-content: center;
min-height: 100vh;
margin: 0;
padding: 0;
}
#house {
position: relative;
width: 500px;
height: 400px;
background-color: #FF9980;
border: 5px solid #B35900;
}
#chimney {
position: absolute;
top: -26px;
width: 50px;
height: 100px;
background-color: gray;
border: 2px solid black;
z-index: -1;
}
#roof {
position: absolute;
top: 0;
width: 500px;
height: 100px;
background-color: #B35900;
border: 2px solid #B35900;
}
#window-1 {
position: absolute;
top: 150px;
left: 50px;
width: 100px;
height: 100px;
background-color: #FFFFB3;
border: 5px solid #B35900;
}
#window-2 {
position: absolute;
top: 150px;
right: 50px;
width: 100px;
height: 100px;
background-color: #FFFFB3;
border: 5px solid #B35900;
}
#window-divider {
position: absolute;
left: 50px;
height: 100%;
border: 3px solid #B35900;
}
#door {
position: absolute;
bottom: 0;
left: 200px;
width: 100px;
height: 150px;
background-color: #E6E6E6;
border: 5px solid #B35900;
}
#handle {
position: absolute;
left: 70px;
top: 60px;
height: 20px;
width: 20px;
border-radius: 100%;
background-color: #B35900;
}
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36
Challenge Information:
Build a House Painting - Build a House Painting