-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
103 lines (80 loc) · 1.95 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<meta charset="utf-8">
<style>
.container {
background: #ddd;
height: 122px;
width: 152px;
position: absolute;
margin: auto;
left: 0;
right: 0;
top: 0;
bottom: 0;
}
.main {
display: grid;
grid-template-columns: repeat(3, 51px);
}
.main>div {
width: 50px;
height: 30px;
text-align: center;
padding-top: 10px;
}
.item {}
.item-1,
.item-2,
.item-7,
.item-8 {
border-right: 1px solid black;
}
.item-4,
.item-5 {
border: 1px solid black;
border-left: none;
}
.item-6 {
border-top: 1px solid black;
border-bottom: 1px solid black;
}
.green {
background: green;
}
.red {
background: red;
}
</style>
<title>Tic-Tac-Toe-Game </title>
</head>
<body>
<div class="container">
<div class="main" id="wrapper">
<div class="item item-1" id="0">
</div>
<div class="item item-2" id="1">
</div>
<div class="item item-3" id="2">
</div>
<div class="item item-4" id="3">
</div>
<div class="item item-5" id="4">
</div>
<div class="item item-6" id="5">
</div>
<div class="item item-7" id="6">
</div>
<div class="item item-8" id="7">
</div>
<div class="item item-9" id="8">
</div>
</div>
</div>
</body>
<script src="./index.js"></script>
</script>
</body>
</html>