-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.css
107 lines (90 loc) · 1.71 KB
/
index.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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
.flex-container {
display: flex;
width: 300px;
}
.space {
height: 50px;
}
.flex-item {
display: flex;
justify-content: center;
align-items: center;
height: 200px;
}
.flex-item:nth-child(1) {
background-color: aquamarine;
flex: 3 4;
}
.flex-item:nth-child(2) {
background-color: burlywood;
flex: 2 5;
}
.flex-item:nth-child(3) {
background-color: thistle;
flex: 1 3;
}
.grid-container {
width: 400px;
display: grid;
grid-template-rows: repeat(3, 100px);
grid-template-columns: repeat(3, 1fr);
grid-auto-rows: 100px;
grid-template-areas:
"header header header"
"main main aside"
". footer .";
}
.grid-item {
color: white;
display: flex;
justify-content: center;
align-items: center;
font-size: 30px;
}
.grid-item:nth-child(1) {
background-color: silver;
grid-area: header;
}
.grid-item:nth-child(2) {
background-color: burlywood;
grid-area: main;
}
.grid-item:nth-child(3) {
background-color: thistle;
grid-area: aside;
}
.grid-item:nth-child(4) {
background-color: cadetblue;
grid-area: footer;
}
.grid-container-2 {
width: 400px;
display: grid;
grid-template-rows: repeat(3, 100px);
grid-template-columns: repeat(3, 1fr);
grid-auto-rows: 100px;
gap: 20px 10px;
grid-template-areas:
"header header header"
"main main aside"
"footer footer footer";
}
.grid-container-3 {
width: 400px;
display: grid;
grid-template-rows: repeat(2, 90px);
grid-template-columns: repeat(2, 1fr);
}
.grid-item-3:nth-child(1) {
background-color: silver;
}
.grid-item-3:nth-child(2) {
background-color: burlywood;
}
.grid-item-3:nth-child(3) {
background-color: thistle;
}
.grid-item-3:nth-child(4) {
background-color: cadetblue;
order: -1;
}