-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflexbox_css.css
50 lines (46 loc) · 1.17 KB
/
flexbox_css.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
.container{
height: 544px;
width: 100%;
border: 2px solid black;
/* initialising containers for flex box */
display: flex;
/* flex properties for flex cantainer */
flex-direction: row; /*default value is row*/
/* flex-direction: column;
flex-direction: row-reverse;
flex-direction: column-reverse; */
/* flex-wrap: nowrap; default value */
/* flex-wrap: wrap-reverse; */
flex-flow: row-reverse nowrap; /*used to set direction and wrap in one go*/
/*justify content*/
justify-content: center ;
justify-content: space-between;
justify-content: space-evenly;
justify-content: space-around;
/*same as justify but does verticaly*/
align-items: center;
align-items: flex-end;
align-items: flex-start;
align-items: stretch;
/*flex properties for flex items*/}
#item-1{
/* background-color: black; */
order: 200;
}
#item-2{
order: 40;
}
#item-3{
order: 5;
}
#item-2{
display: inline;
}
.item{
width: 80px;
height: 80px;
background-color: tomato;
border: 2px solid red;
margin: 10px;
padding: 3px;
}