Build a House Painting - Build a House Painting

Tell us what’s happening:

i have issue with the top value what seems to be the problem in this step

40Your #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 lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>My Colorful House</title>
    <style>
        #house {
            position: relative;
            width: 500px;
            height: 400px;
            background-color: #f5e6c8;
            border: 5px solid #8b4513;
            margin: 20px;
        }

        #house > div {
            position: absolute;
        }

        #roof {
            top: 0;
            width: 100%;
            height: 100px;
            background-color: #a52a2a;
            border: 3px solid #5a1a1a;
            clip-path: polygon(0 100%, 50% 0, 100% 100%);
        }

        #chimney {
            width: 40px;
            height: 80px;
            background-color: #8b0000;
            border: 2px solid #5a1a1a;
            right: 100px;
            top: 0;
            z-index: -1;
        }

        #window-1 {
            width: 80px;
            height: 80px;
            background-color: #add8e6;
            border: 3px solid #00008b;
            left: 80px;
            top: 120px;
        }

        #window-2 {
            width: 80px;
            height: 80px;
            background-color: #add8e6;
            border: 3px solid #00008b;
            right: 80px;
            top: 120px;
        }

        #door {
            width: 100px;
            height: 180px;
            background-color: #8b4513;
            border: 3px solid #5a1a1a;
            bottom: 0;
            left: 200px;
        }
    </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/138.0.0.0 Safari/537.36

Challenge Information:

Build a House Painting - Build a House Painting

hi there, welcome to the forum.

I find it is helpful to search for similar question to mine on the forum and see if they will help me. For example, when I search the forum for “Build a House Painting” and looks for solved posts, I get this:

btw. I noticed you didn’t put your css in the styles.css file. Is there a reason why you wanted to inline it all in the html file?