Build a House Painting - Build a House Painting

Tell us what’s happening:

Test 44 wont pass. i keep getting an error message

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>
           #house {
            position: relative;
            width: 500px;
            height: 400px;
            background-color: beige;
            border: 2px solid black;
        }
        
        #chimney {
            position: absolute;
            width: 40px;
            height: 60px;
            border: 1px solid black;
            background-color: gray;
            top: 0px;
            left: 50px;
            z-index: -1;
        }
        
        #roof {
            position: absolute;
            width: 500px;
            height: 100px;
            border: 1px solid black;
            background-color: darkred;
            top: 0;
            left: 0;
        }
        
        #window-1 {
            position: absolute;
            width: 50px;
            height: 50px;
            border: 1px solid black;
            background-color: white;
            top: 130px;
            left: 100px;
        }
        
        #window-2 {
            position: absolute;
            width: 50px;
            height: 50px;
            border: 1px solid black;
            background-color: white;
            top: 130px;
            right: 100px;
        }
        
        #door {
            position: absolute;
            width: 70px;
            height: 100px;
            border: 1px solid black;
            background-color: darkred;
            bottom: 0;
            left: 215px;
        }

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/144.0.0.0 Safari/537.36

Challenge Information:

Build a House Painting - Build a House Painting

Your chimney is currently positioned with top: 0px, which means the top of the chimney is flush with the top of the house. Try using a negative value to bring the chimney higher than the house.

2 Likes

It worked. Thank you!