-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyles.css
37 lines (32 loc) · 960 Bytes
/
styles.css
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
body{ /*setting page default*/
margin:0;
background-color: white;
padding:0;
}
.container{
display:flex; /*creates flexbox*/
flex-direction: column; /*sets the flex direction to column*/
align-items: center; /*centers container horizontally*/
justify-content: center; /*centers container vertically*/
width:100%; /*sets container to entire screen*/
max-width: 0 auto; /*max width is auto generated*/
}
#game-board{ /*targetting with a # because is an id*/
background-color: black;
width: 900px;
height: 900px;
display:grid; /*creates grid*/
grid-template-columns: repeat(21,1fr); /*grid has 21 columns that are equally sized*/
grid-template-rows: repeat(21,1fr); /*grid has 21 rows that are equally sized*/
}
#score{
font-size: 40px;
}
.snake{
background-color: green;
border: .25vmin solid white;
}
.food{
background-color: red;
border: .25vmin solid white;
}