Skip to content

Commit 1a9723a

Browse files
committed
updates to battleship
1 parent 2aea1b5 commit 1a9723a

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

chapter8/battleship.html

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<!doctype html>
22
<html lang="en">
33
<head>
4-
<title>Battleship</title>
54
<meta charset="utf-8">
5+
<title>Battleship</title>
66
<style>
77
body {
88
background-color: black;
@@ -27,6 +27,18 @@
2727
.miss {
2828
background: url("miss.png") no-repeat center center;
2929
}
30+
table {
31+
border-spacing: 0px;
32+
/* could use border-collapse instead */
33+
/* border-collapse: collapse; */
34+
position: absolute;
35+
left: 173px;
36+
top: 98px;
37+
}
38+
td {
39+
width: 94px;
40+
height: 94px;
41+
}
3042
form {
3143
position: absolute;
3244
bottom: 0px;
@@ -39,18 +51,6 @@
3951
border-color: rgb(83, 175, 19);
4052
font-size: 1em;
4153
}
42-
table {
43-
border-spacing: 0px;
44-
/* can also use border-collapse instead */
45-
/* border-collapse: collapse; */
46-
position: absolute;
47-
left: 173px;
48-
top: 98px;
49-
}
50-
td {
51-
width: 94px;
52-
height: 94px;
53-
}
5454
</style>
5555
</head>
5656
<body>

0 commit comments

Comments
 (0)