-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path22-tic-tack-toe.html
More file actions
54 lines (48 loc) Β· 1.23 KB
/
22-tic-tack-toe.html
File metadata and controls
54 lines (48 loc) Β· 1.23 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Document</title>
<style>
.container {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
display: flex;
align-items: center;
justify-content: center;
}
.content {
display: grid;
grid-template-columns: repeat(3, 1fr);
grid-template-rows: repeat(3, 1fr);
grid-column-gap: 0px;
grid-row-gap: 0px;
border: 1px solid black;
margin: 0 auto;
}
.item {
display: flex;
align-items: center;
justify-content: center;
width: 200px;
height: 200px;
line-height: 50px;
font-size: 80px;
border: 1px solid black;
cursor: pointer;
transition: background-color 0.1s;
}
.item:hover {
background-color: #aef6f664;
}
</style>
</head>
<body>
<div class="container"><div class="content"></div></div>
<script src="./app/22-tick-tack-toe.js"></script>
</body>
</html>