Skip to content

Commit 6201ca7

Browse files
committed
house painting
1 parent f52a85a commit 6201ca7

File tree

2 files changed

+78
-0
lines changed

2 files changed

+78
-0
lines changed

house-painting/index.html

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="utf-8">
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
6+
<title>House Painting</title>
7+
<link rel="stylesheet" href="./styles.css" />
8+
</head>
9+
<body>
10+
<div id="house">
11+
<div id="chimney"></div>
12+
<div id="roof"></div>
13+
<div id="window-1"></div>
14+
<div id="window-2"></div>
15+
<div id="door"></div>
16+
</div>
17+
18+
</body>
19+
</html>

house-painting/styles.css

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
2+
#house {
3+
position: relative;
4+
width: 500px;
5+
height: 400px;
6+
background-color: #C8A2C8;
7+
border: 5px solid #A47DAB;
8+
margin: 100px auto;
9+
10+
}
11+
12+
#house div {
13+
position: absolute;
14+
}
15+
16+
#chimney {
17+
width: 60px;
18+
height: 80px;
19+
background-color: #C8A2C8;
20+
border: 2px solid #A47DAB;
21+
top: -80px;
22+
right: 50px;
23+
z-index: -1;
24+
}
25+
26+
#roof {
27+
width: 490px;
28+
height: 100px;
29+
border: 5px double #A47DAB;
30+
background-color: #A47DAB;
31+
top: 0;
32+
}
33+
34+
#window-1 {
35+
top: 150px;
36+
left: 50px;
37+
width: 90px;
38+
height: 100px;
39+
border: 5px solid #A47DAB;
40+
background-color: #F1E5AC;
41+
}
42+
43+
#window-2 {
44+
top: 150px;
45+
right: 50px;
46+
width: 90px;
47+
height: 100px;
48+
border: 5px solid #A47DAB;
49+
background-color: #F1E5AC;
50+
}
51+
52+
#door {
53+
border: 5px solid #A47DAB;
54+
bottom: 0;
55+
left: 200px;
56+
width: 100px;
57+
height: 195px;
58+
background-color: lightgrey;
59+
}

0 commit comments

Comments
 (0)