CSS Flex Box: Output
CSS Flexbox: Properties & Values
Video Link
A. Parent Properties
- display:
- flex;
- flex-direction:
- column;
- column-revers;
- row;
- row-reverse;
- justify-content:
- flex-start;
- flex-end;
- center;
- space-between;
- space-around;
- space-evenly;
- align-items:
- flex-start;
- flex-end;
- center;
- baseline;
- stretch;
- flex-wrap:
- nowrap;
- wrap;
- wrap-reverse;
- align-content:
- flex-start;
- flex-end;
- center;
- space-between;
- space-around;
- stretch;
B. Child Properties
- flex:
- 1;
- flex-grow:
- 1;
- 2;
- 3;
- flex-shrink:
- 0;
- 1;
- flex-basis:
- 300px;
- order:
- 1;
- 2;
- 3;
- align-self:
- auto;
- flex-start;
- flex-end;
- center;
- baseline;
- stretch;
Code Output:
display: flex;
A.1.a. display: flex;
- display:
- flex;
Primary Code Output:
code output
1
2
3
4
After Applying the
Properties: values;
Code Output:code output
1
2
3
4
1
2
3
4
Code Output:
flex-direction: column;
A.2.a. flex-direction: column;(defolt)
- ❌
- flex-direction:
- column;
Code Output:
code output
1
2
3
4
Dfg
Code Output:
flex-direction: column-reverse;
A.2.b. flex-direction: column-reverse;
- display: flex;
- flex-direction:
- ❌
- column-reverse;
Code Output:code output1234
1
2
3
4
Fr
Code Output:
flex-direction: row; (defolt)
A.2.c. flex-direction: row;
- display: flex;
- flex-direction:
- ❌
- ❌
- row;
Code Output:code output1234
1
2
3
4
Fr
Code Output:
flex-direction: row-reverse;
A.2.d. flex-direction: row-reverse;
- display: flex;
- flex-direction:
- ❌
- ❌
- ❌
- row-reverse;
Code Output:code output1234
1
2
3
4
Fr
Code Output:
justify-cintaint: flex-start;
A.3.a. flex-direction: flex-start;
- display: flex;
- justify-containt:
- flex-start;
Code Output: (default)code output1234
1
2
3
4
Fr
Code Output:
justify-cintent: flex-end;
A.3.b. justify-cintent: flex-start;
- display: flex;
- justify-content:
- flex-end;
Code Output: code output1234
1
2
3
4
Fr
Fr
Code Output:
justify-content: center;
A.3.c. justify-content: center;
- display: flex;
-
justify-content:
- center;
code output
1
2
3
4
Fr
Code Output:
justify-content: space-between;
A.3.d. justify-content:
space-between;
- display: flex;
-
justify-content:
- space-between;
code output-1
1
2
code output-2
1
2
3
code output-3
1
2
3
4
Fr
Code Output:
justify-content: space-around;
A.3.e. justify-content:
space-around;
- display: flex;
-
justify-content:
- space-around;
Code Output:
code output-1
1
2
code output-2
1
2
3
code output-3
1
2
3
4
Fr
Code Output:
justify-content: space-evenly;
A.3.f. justify-content:
space-evenly;
- display: flex;
-
justify-content:
- space-evenly;
Code Output:
code output-1
1
2
code output-2
1
2
3
code output-3
1
2
3
4
Fr
Code Output:
align-items: flex-start;
A.4.a. align-item: flex-start;
- display: flex;
-
justify-content:
- center;
-
align-items:
- flex-start;
Code Output:
code output
1
2
3
Fr
Code Output:
align-items: flex-end;
A.4.b. align-item: flex-end;
- display: flex;
- justify-content:
- center;
- align-items:
- flex-end;
Code Output:
code output
1
2
3
Fr
Code Output:
align-items: center;
A.4.c. align-item: center;
- display: flex;
- justify-content:
- center;
- align-items:
- center;
Code Output:
code output
1
2
3
Fr
Code Output:
Absolute Centering
align-items: baseline;
A.4.d. align-item: baseline;
- display: flex;
- justify-content:
- center;
- align-items:
- Centre;
Code Output:
code output
1
Fr
Code Output:
align-items: baseline;
A.4.e. align-item: baseline;
- display: flex;
- justify-content:
- center;
- align-items:
- baseline;
Code Output:
code output❌
1
2
3
1
2
3
4
Code Output:
code output
1❌
2
3
4
Dghh
Dghh
Comments
Post a Comment