27 lines
376 B
CSS
27 lines
376 B
CSS
|
*{
|
||
|
padding: 0;
|
||
|
margin: 0;
|
||
|
1 rem = 16px;
|
||
|
}
|
||
|
body{
|
||
|
background-color:#000;
|
||
|
}
|
||
|
|
||
|
.blank{
|
||
|
background-color:blank;
|
||
|
}
|
||
|
#snake{
|
||
|
position: absolute;
|
||
|
width: 1rem;
|
||
|
height: 1rem;
|
||
|
background-color:white;
|
||
|
}
|
||
|
.wall{
|
||
|
background-color:green;
|
||
|
}
|
||
|
#fruit{
|
||
|
position: absolute;
|
||
|
width : 1rem;
|
||
|
height: 1rem;
|
||
|
background-color:red;
|
||
|
}
|