-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathflexbox.css
116 lines (79 loc) · 1.5 KB
/
flexbox.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
108
109
110
111
112
113
114
115
116
html{
background-color: red;
padding: 10px;
}
body{
background-color: yellow;
padding: 10px;
margin:0;
}
/*@media{
min-width:468px;
}
/*flexbox */
.parent{
background-color: #f073e1;
margin:10px;
padding: 10px;
height: 400px;
display: flex; /*flex and inline-flex ---- inspect element in browser*/
flex-flow: row-reverse wrap; /*column and reverse-column; row and reverse-row*/ /* wrap */ /*wrap-reverse */
align-items: stretch; /* center, baseline*/ /* how the elements are displayed - refers to cross axis*/
justify-content: center; /*space-between, flex-start and flex-end */ /* - refers to the main axis */
align-content: center; /* --- inspect element in browser*/
}
.parent div{
padding: 20px;
}
.div7{
width:19%; /* flex-basis*/
}
.div1{
flex:1;
background-color: #f800db
margin: 5px;
}
.div2 {
flex:1;
background-color: #f800db;
margin: 5px;
width: 150px;
font-size: 30px;
order: 2
}
.div3 {
flex:1;
background-color: #f800db;
margin: 5px;
height: 150px;
order:5;
}
.div4 {
flex:1;
background-color: #f800db;
margin: 5px;
width: 150px;
height: 150px;
}
.div5 {
flex:1;
background-color: #f800db;
margin: 5px;
width: 200px;
}
.div6 {
flex:1;
background-color: #f800db;
margin: 5px;
width: 200px;
}
/*
.parent1 div {
border: 1px solid black;
padding: 20px;
}
.parent1{
display: flex;
justify-content: space-between;
}
*/