-
Notifications
You must be signed in to change notification settings - Fork 0
/
grid-template-areas.css
65 lines (56 loc) · 997 Bytes
/
grid-template-areas.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
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;
grid-template-areas:
"b1 b2 b2"
"b1 b3 b4"
"b5 b3 b6"
"b7 b7 b6";
}
.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-area: b1;
}
.box2 {
grid-area: b2;
}
.box3 {
grid-area: b3;
}
.box4 {
grid-area: b4;
}
.box5 {
grid-area: b5;
}
.box6 {
grid-area: b6;
}
.box7 {
grid-area: b7;
}