Build a House Painting - Build a House Painting

Tell us what’s happening:

Build a house painting test 42. I have tried every reasonable top value for the door, and visually it looks correct, but I keep failing test 42.

Your code so far* {

box-sizing: border-box;

}

#house {

position: relative;

width: 500px;

height: 400px;

background-color: blue;

border: 5px solid red;

}

#house div{

position: absolute;

}

#roof {

top: 0;

left: 191px;

width: 75px;

height: 100px;

border: 5px solid purple;

background-color: green;

}

#door {

top: 306px;

left: 211px;

width: 75px;

height: 100px;

border: 5px solid purple;

background-color: green;

z-index: 1;

}

#window-1 {

top: 125px;

left: 75px;

width: 75px;

height: 50px;

border: 5px solid purple;

background-color: green;

}

#window-2 {

top: 125px;

left: 325px;

width: 75px;

height: 50px;

border: 5px solid purple;

background-color: green;

}

#chimney {

top: -102px;

left: 396px;

width: 75px;

height: 100px;

border: 5px solid purple;

background-color: green;

z-index: -1;

}

<!-- 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 */
* {
  box-sizing: border-box;
}

#house {
  position: relative;
  width: 500px;
  height: 400px;
  background-color: blue;
  border: 5px solid red;
}

#house div{
  position: absolute;
}

#roof {
  top: 0;
  left: 191px;
  width: 75px;
  height: 100px;
  border: 5px solid purple;
  background-color: green;
}

#door {
  top: 306px;
  left: 211px;
  width: 75px;
  height: 100px;
  border: 5px solid purple;
  background-color: green;
  z-index: 1;
}

#window-1 {
 top: 125px;
 left: 75px;
 width: 75px;
  height: 50px;
  border: 5px solid purple;
  background-color: green;
}

#window-2 {
 top: 125px;
 left: 325px;
 width: 75px;
  height: 50px;
  border: 5px solid purple;
  background-color: green;
}

#chimney {
  top: -102px;
  left: 396px;
  width: 75px;
  height: 100px;
  border: 5px solid purple;
  background-color: green;
  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/142.0.0.0 Safari/537.36

Challenge Information:

Build a House Painting - Build a House Painting

can you tell us what is test 42?

1 Like

Thank you for responding, but I was able to figure it out. I appreciate your time nonetheless.