-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathP2_BackgoundColorChange.html
More file actions
72 lines (71 loc) · 1.66 KB
/
P2_BackgoundColorChange.html
File metadata and controls
72 lines (71 loc) · 1.66 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Background Changer</title>
</head>
<style>
body {
background-color: #212121;
color: #fff;
}
.container {
display: flex;
justify-content: center;
align-items: center;
flex-wrap: wrap;
}
.button {
width: 160px;
height: 150px;
border: 2px solid black;
margin: 5px;
}
#grey {
background-color: grey;
}
#purple {
background-color: purple;
}
#black {
background-color: black;
}
#red {
background-color: red;
}
#blue {
background-color: blue;
}
#orange {
background-color: orange;
}
#white {
background-color: white;
}
#pink {
background-color: pink;
}
#green {
background-color: green;
}
#yellow {
background-color: yellow;
}
</style>
<body>
<div class="container">
<span class="button" id="grey"></span>
<span class="button" id="purple"></span>
<span class="button" id="black"></span>
<span class="button" id="blue"></span>
<span class="button" id="red"></span>
<span class="button" id="orange"></span>
<span class="button" id="white"></span>
<span class="button" id="pink"></span>
<span class="button" id="green"></span>
<span class="button" id="yellow"></span>
</div>
<script src="P2_BackgoundColorChange.js"></script>
</body>
</html>