-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
65 lines (60 loc) · 1.26 KB
/
style.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
54
55
56
57
58
59
60
61
62
63
.container div{
background-color: rgb(255, 127, 242);
display: flex;
align-items: center;
justify-content: center;
position:relative;
}
body{
font-size: 1.5rem;
font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
}
.container{
display: grid;
grid-template-columns: repeat(4, 1fr);
grid-template-rows: repeat(4, 150px);
/* grid-auto-rows: 150px; */
/* column-gap: 20px;
row-gap: 20px; */
gap: 20px;
counter-reset: my;
}
.container div::after{
counter-increment: my;
content: ": " counter(my);
}
.container div:nth-child(2)
{
background-color: darkcyan;
grid-column: span 3;
}
.container div:nth-child(3)
{
background-color: skyblue;
grid-row-start: 3;
grid-row-end: -1;
}
.container div:nth-child(4){
background-color: yellow;
color: black;
grid-row: span 2;
}
.container div:nth-child(7){
background-color:skyblue;
color: black;
grid-column: 3 / -1; /* same 3 / 5 */
}
.container div::before {
content: "";
width: 10px;
height: 10px;
margin: 0.5rem;
border-radius: 50%;
background-color: lightgreen;
position: absolute;
top: 0;
left: 0;
}
.container div:nth-child(odd)::before{
background-color: firebrick;
}