This repository was archived by the owner on Dec 12, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathflex.css
More file actions
76 lines (56 loc) · 1.39 KB
/
flex.css
File metadata and controls
76 lines (56 loc) · 1.39 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
@media(min-width:760px){
/*
media query helps the phones so that when the window is more then 760px it want do this
*/
.container-1{
display: flex; /* auto put them side by side */
align-items: flex-start; /* to end the box when ends
the default one is stretch , flex-end , center
*/
/* flex-direction: column; /* row , column */
}
.container-2{
display: flex;
justify-content:space-between;
/* flex-start is by default , so we wanna add some spaces between the boxes like this
and if we wanna add some spaces also at the end and the begining we can , space-around
*/
}
}
.container-3{
display: flex;
flex-wrap: wrap; /* in a certain size a box will get in another line , until there are two rows */
justify-content: space-between;
}
.container-1 div , .container-2 div, .container-3 div{
border:1px #ccc solid;
padding:10px;
}
.box-container{
flex-basis: 27%; /*reither then width */
}
.box-container-2{
flex-basis: 13%;
}
.box-1{
flex: 2; /*make the first box larger then the others */
order:2; /* to change the order for expl in the midlle*/
}
.box-2{
flex: 1;
order:1;
}
.box-3{
flex: 1;
order: 3;
}
/*
display:flex
flex-direction:row,column
align-items:flex-start,flex-end, center, stretch
justify-content: space-between, center, space-around,
flex-start flex-wrap: wrap
flex-basis: 27%;
flex: 2;
order: 2;
*/