File tree 2 files changed +4
-5
lines changed
2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change 10
10
< body >
11
11
< h1 > Breakout</ h1 >
12
12
< h3 > Press spacebar to start</ h3 >
13
- < canvas width ="400 " height ="500 " id ="game "> </ canvas >
13
+ < canvas class =' canvas ' width ="400 " height ="500 " id ="game "> </ canvas >
14
14
< script src ="script.js "> </ script >
15
15
</ body >
16
16
Original file line number Diff line number Diff line change @@ -4,16 +4,15 @@ html, body {
4
4
}
5
5
6
6
body {
7
- background : black;
8
7
background-image : url ('https://t4.ftcdn.net/jpg/02/15/94/83/360_F_215948377_kgIhNUy4X0iYsyUfYd9KKIViSPOxclbC.jpg' );
9
8
background-repeat : no-repeat;
10
9
background-attachment : fixed;
11
10
background-size : 100% 100% ;
12
11
}
13
12
14
- canvas {
15
- background : black;
16
- border : 2 px solid black ;
13
+ . canvas {
14
+ background-color : black;
15
+ border : 10 px solid lightgrey ;
17
16
display : flex;
18
17
align-items : center;
19
18
justify-content : center;
You can’t perform that action at this time.
0 commit comments