-
Notifications
You must be signed in to change notification settings - Fork 0
/
grid-column-and-row.css
67 lines (58 loc) · 1.03 KB
/
grid-column-and-row.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
64
65
66
67
body {
margin: 0px;
padding: 0px;
height: 100vh;
box-sizing: border-box;
display: flex;
align-items: center;
justify-content: center;
background-image: linear-gradient(120deg, #353b48, #2f3640);
}
.container {
height: 80%;
width: 80%;
display: grid;
grid-gap: 15px;
grid-template-columns: 2fr 2fr 1fr;
grid-template-rows: 1fr 1fr 1fr 2fr;
}
.box {
font-weight: bold;
font-family: "Trebuchet MS", "Lucida Sans Unicode", "Lucida Grande",
"Lucida Sans", Arial, sans-serif;
color: rgb(204, 204, 204);
padding: 30px;
background-image: linear-gradient(120deg, #377ab1, #51409e);
border-radius: 10px;
justify-content: center;
align-content: center;
align-items: center;
}
.box1 {
grid-column: 1/2;
grid-row: 1/3;
}
.box2 {
grid-column: 2/4;
grid-row: 1/2;
}
.box3 {
grid-column: 2/3;
grid-row: 2/4;
}
.box4 {
grid-column: 3/4;
grid-row: 2/3;
}
.box5 {
grid-column: 1/2;
grid-row: 3/4;
}
.box6 {
grid-column: 3/4;
grid-row: 3/5;
}
.box7 {
grid-column: 1/3;
grid-row: 4/5;
}