-
Notifications
You must be signed in to change notification settings - Fork 902
/
Copy pathindex.html
50 lines (45 loc) · 1.14 KB
/
index.html
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Bacground Colour Switcher</title>
<style>
.warper {
display: flex;
align-items: center;
justify-items: center;
gap: 10px;
flex-wrap: wrap;
}
.button {
height: 10vh;
width: 10vh;
border: 1px solid black;
}
#grey {
background-color: gray;
}
#white {
background-color: white;
}
#blue {
background-color: blue;
}
#yellow {
background-color: yellow;
}
</style>
</head>
<body>
<h1>Color Scheme Switcher</h1>
<div class="warper">
<span class="button" id="grey"></span>
<span class="button" id="white"></span>
<span class="button" id="blue"></span>
<span class="button" id="yellow"></span>
</div>
<h2>Click to one colors to change the background of this page</h2>
<script src="script.js"></script>
</body>
</html>