-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflex.css
More file actions
81 lines (63 loc) · 1.2 KB
/
flex.css
File metadata and controls
81 lines (63 loc) · 1.2 KB
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
/* Box-sizing border-box */
* { box-sizing: border-box; }
/* Some default styles to make each box visible. This targets all items with a class that starts with "box" */
[class^="box"] {
color:white;
font-size: 100px;
text-align: center;
text-shadow:4px 4px 0 rgba(0,0,0,0.1);
padding:10px;
}
/* Colors for each box */
.box1 { background:#1abc9c;}
.box2 { background:#3498db;}
.box3 { background:#9b59b6;}
.box4 { background:#34495e;}
.box5 { background:#f1c40f;}
.box6 { background:#e67e22;}
.box7 { background:#e74c3c;}
.box8 { background:#bdc3c7;}
.box9 { background:#2ecc71;}
.box10 { background:#16a085;}
/* We start writing our flexbox here. The above is just page setup */
.flex-container {
border:10px solid goldenrod;
display: flex;
flex-direction: row;
flex-wrap: wrap;
justify-content: flex-end;
height: 100vh;
//justify-content: space-between;
align-items: center;
//align-content: space-around;
}
[class^="box"] {
width:30%;
}
.box1 {
order: 6;
align-self: stretch
}
.box2 {
order: 1
}
.box3 {
order: 4
}
.box4 {
order: 7;
flex-grow: 1
}
.box5 {
}
.box6 {
}
.box7 {
}
.box8 {
}
.box9 {
}
.box10 {
}
@media screen and (max-width:1020px){}