Tell us what’s happening:
During the build of house project i have tried different approaches and searched for different solutions but nothing is working . Everytime I submit for checks it shows error . please review my code if possible and guide me completing the project. the error is on the chimney part as its showing the top value isn’t right i guess. but i have checked for it multiple times and i am sure about the values.
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 */
body{
width: 100%;
height: 80%;
padding-top: 150px;
display: flex;
justify-content: center;
align-items: center;
}
#house{
position: relative;
width: 500px;
height: 400px;
background-color: crimson;
border: 9px solid purple;
border-radius: 9px;
}
#house div{
position: absolute;
}
#chimney{
width: 60px;
height: 80px;
background-color: purple;
border: 2px solid goldenrod;
top: -90px; right: 100px;
z-index: -1;
}
#roof{
width: 100%;
height: 80px;
background-color: brown;
border: 2px solid white;
top:0;
}
#window-1{
width: 80px;
height: 100px;
background-color: yellow;
border: 6px solid brown;
top: 130px;
left:60px;
}
#window-2{
width: 80px;
height: 100px;
background-color: yellow;
border: 6px solid brown;
right:60px; top:130px;
}
#door{
width: 120px;
height: 180px;
background-color: white;
border: 6px solid brown;
bottom:0;left:190px; right: 180px;
}
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 Edg/138.0.0.0
Challenge Information:
Build a House Painting - Build a House Painting