-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
56 lines (45 loc) · 822 Bytes
/
Copy pathstyle.css
File metadata and controls
56 lines (45 loc) · 822 Bytes
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
body {
min-height: 100vh;
box-sizing: border-box;
margin: 0;
padding: 0;
}
.container {
background: rgb(194, 188, 188);
display: grid;
grid-template-columns: 1fr 1fr 1fr;
grid-template-rows: 1fr 1fr 1fr;
grid-template-areas:
"a a b"
"c d b"
"c e e";
/* border: 2px solid red; */
width: 100%;
height: 100vh;
}
div:nth-child(1) {
background: yellow;
grid-area: a;
}
div:nth-child(2) {
background: purple;
grid-area: b;
}
div:nth-child(3) {
background: green;
grid-area: d;
}
div:nth-child(4) {
background: red;
grid-area: c;
}
div:nth-child(5) {
background: orchid;
grid-area: e;
}
div:nth-child(odd) { /* Se réfère à toutes class div impaires*/
margin: 15px;
}
div:nth-child(even) { /* Se réfère à toutes class div paires*/
margin: 15px;
}