Skip to content

Commit 80e2560

Browse files
committed
Fixed layout
1 parent a6428b0 commit 80e2560

1 file changed

Lines changed: 33 additions & 29 deletions

File tree

css/game.css

Lines changed: 33 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,35 @@
11
/* Styling needed for a fullscreen canvas and no scrollbars. */
2-
body, html {
3-
width: 100%;
4-
height: 100%;
5-
margin: 0;
6-
padding: 0;
7-
overflow: hidden;
8-
}
92

10-
#starfield {
11-
width:100%;
12-
height:100%;
13-
z-index: -1;
14-
position: absolute;
15-
left: 0px;
16-
top: 0px;
17-
}
18-
#gamecontainer {
19-
width: 800px;
20-
margin-left: auto;
21-
margin-right: auto;
22-
}
23-
#gamecanvas {
24-
width: 800px;
25-
height: 600px;
26-
}
27-
#info {
28-
width: 800px;
29-
margin-left: auto;
30-
margin-right: auto;
31-
}
3+
body, html {
4+
width: 100%;
5+
height: 100%;
6+
margin: 0;
7+
padding: 0;
8+
overflow: hidden;
9+
}
10+
11+
#starfield {
12+
width:100%;
13+
height:100%;
14+
z-index: -1;
15+
position: absolute;
16+
left: 0px;
17+
top: 0px;
18+
}
19+
20+
#gamecontainer {
21+
width: 800px;
22+
margin-left: auto;
23+
margin-right: auto;
24+
}
25+
26+
#gamecanvas {
27+
width: 800px;
28+
height: 600px;
29+
}
30+
31+
#info {
32+
width: 800px;
33+
margin-left: auto;
34+
margin-right: auto;
35+
}

0 commit comments

Comments
 (0)