-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles.css
70 lines (58 loc) · 1.45 KB
/
styles.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
/* ------------------- Opdracht 1: ------------------- */
.opdracht-1 .flex-container {
display: flex;
flex-direction: row;
justify-content: space-between;
}
/* ------------------- Opdracht 2: ------------------- */
.opdracht-2 .flex-container {
display: flex;
flex-direction: row;
}
.opdracht-2 .flex-item {
flex-basis: 240px;
}
/* ------------------- Opdracht 3: ------------------- */
.opdracht-3 .flex-container {
display: flex;
flex-direction: row;
justify-content: space-between;
}
.opdracht-3 .top-left {
align-self: flex-start;
}
.opdracht-3 .centered {
align-self: center;
}
.opdracht-3 .bottom-right {
align-self: flex-end;
}
/* ------------------- Opdracht 4: ------------------- */
.opdracht-4 .flex-container {
display: flex;
flex-direction: row;
flex-wrap: wrap;
gap: 10px;
}
/* ------------------- Opdracht 5: ------------------- */
.opdracht-5 .flex-container {
display: flex;
flex-direction: row;
justify-content: space-between;
}
.opdracht-5 .flex-column {
display: flex;
flex-direction: column;
justify-content: space-between;
align-items: center;
}
/*Met de selector nth-of-type(getal) kun je het "zoveelste" element van dat type aanspreken*/
.opdracht-5 .flex-column:nth-of-type(1) {
align-items: flex-start;
}
.opdracht-5 .flex-column:nth-of-type(2) {
align-items: center;
}
.opdracht-5 .flex-column:nth-of-type(3) {
align-items: flex-end;
}