Skip to content

Commit a333106

Browse files
committed
simplified css in battleship
1 parent be5b6e9 commit a333106

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

chapter8/battleship.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,17 @@
44
<title>Battleship</title>
55
<meta charset="utf-8">
66
<style>
7-
html, body {
8-
margin: auto;
9-
width: 1024px;
7+
body {
108
background-color: black;
119
}
1210
div#board {
1311
position: relative;
1412
width: 1024px;
1513
height: 863px;
16-
background: black url("board.jpg") no-repeat left top;
14+
margin: auto;
15+
background: url("board.jpg") no-repeat;
1716
}
17+
1818
div#messageArea {
1919
position: absolute;
2020
top: 0px;

chapter8/battleship_tester.html

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,15 @@
44
<title>Battleship</title>
55
<meta charset="utf-8">
66
<style>
7-
html, body {
8-
margin: auto;
9-
width: 1024px;
7+
body {
108
background-color: black;
119
}
1210
div#board {
1311
position: relative;
1412
width: 1024px;
1513
height: 863px;
16-
background: black url("board.jpg") no-repeat left top;
14+
margin: auto;
15+
background: url("board.jpg") no-repeat;
1716
}
1817
div#messageArea {
1918
position: absolute;

0 commit comments

Comments
 (0)