-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyles.css
53 lines (47 loc) · 968 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
.container {
width: 500px;
height: 700px;
background-color: aqua;
/* the container is relative to the browser */
position: relative;
font-size: 50px;
text-align: center;
}
.player {
width: 50px;
height: 75px;
background-color: green;
position: absolute;
}
.nft {
width: 50px;
height: 50px;
display: inline-block;
content:url("nft.png");
position: absolute;
z-index: 2;
}
.ground {
width: 75px;
height: 15px;
background-color: hotpink;
/* position of ground is abosulute to the platform */
position: absolute;
z-index: 1;
}
.grid-container {
display: grid;
grid-template-columns: auto auto auto;
/* background-color: #2196F3; */
padding: 10px;
}
.grid-item {
width: 100px;
height: 100px;
background-color: rgba(255, 255, 255, 0.8);
border: 1px solid rgba(0, 0, 0, 0.8);
content:url("nft.png");
}
.hide {
visibility: hidden;
}