Tell us what’s happening:
i have issue with the top value what seems to be the problem in this step
- Your #chimney should have a top value that puts it at the top of your #house.
Your code so far
<!-- file: index.html -->
<!DOCTYPE html>
<html>
<head>
<style>
#house {
position: relative;
width: 500px;
height: 400px;
background-color: #ADD8E6;
border: 2px solid #333;
}
#house > div {
position: absolute;
border: 2px solid #333;
}
#roof {
top: 0;
width: 500px;
height: 50px;
background-color: #8B4513;
border: 3px;
}
#chimney {
width: 40px;
height: 100px;
background-color: #808080;
border: 2px;
top: 50px;
left: 50px;
z-index: -1;
}
#door {
bottom: 0;
width: 60px;
height: 100px;
background-color: #8B4513;
border: 6px;
left: 220px;
}
#window-1, #window-2 {
width: 50px;
height: 50px;
background-color: #FFF;
top: 150px;
}
#window-1 {
left: 50px;
border: 2px;
}
#window-2 {
right: 50px;
border: 4px;
}
</style>
</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 */
Your browser information:
User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/136.0.0.0 Safari/537.36
Challenge Information:
Build a House Painting - Build a House Painting