Tell us what’s happening:
test 42 windows should be placed below the roof and higher than door
i have tried looking through others examples and codes that having this same problem. but none pass
<!-- 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 ref="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:black;
border:1px solid white;
}
#chimney{
position: absolute;
width: 90px;
height: 100px;
background: repeating-linear-gradient(#e6e6e6, #e6e6e6 10%, black 10%, black 12%);
top: -100px;
left: 65%;
z-index: -1;
border: 2px solid black;
}
#roof{
position:absolute;
width:500px;
height:400px;
background-color:black;
border:1px solid white;
}
#window-1 {
position: absolute;
background-color: grey;
border: 1px solid black;
width: 70px; height: 40px;
top: 150px;
left: 80px;
bottom:150px;
}
#window-2 {
position: absolute;
background-color: grey;
border: 1px solid black;
width: 70px; height: 40px;
top: 150px;
right: 100px;
bottom:150px;
}
#door{
position:absolute;
width: 60px;
height: 120px;
border: 2px solid #000;
background-color: brown;
bottom: 0;
left: 220px;
right: 220px;
z-index: 1;
}
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/139.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