Tell us what’s happening:
#chimney is not showing on rooftop, I have tried changing the z-index but still the problem is there.
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">
<link rel="stylesheet" href="styles.css">
<title>House Painting</title>
</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:darkorange;
border:2px solid black;
}
#house div{
position:absolute;
}
#chimney{
width:100px;
height:300px;
background-color:green;
border:2px solid black;
top:0;
right:0px;
z-index:-1;
}
#roof{
width:100%;
height:100px;
background-color:yellow;
border:2px solid black;
top:0;
left:0;
}
#window-1{
width:100px;
height:100px;
background-color:gray;
border:2px solid black;
top:35%;
left:10%;
}
#window-2{
width:100px;
height:100px;
background-color:gray;
border:2px solid black;
top:35%;
right:10%;
}
#door{
width:120px;
height:180px;
background-color:gray;
border:2px solid black;
bottom:0%;
left:38%;
}
Your browser information:
User Agent is: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/155.0.0.0 Safari/537.36
Challenge Information:
Build a House Painting - Build a House Painting
