CSS Flex Box: Code:( Properties: values; )
CSS Flex: Code:
( Properties: values; )
Code Page Link -
https://csscoderecord.blogspot.com/2025/06/css-flex-box-code-properties-values.html/
Output Page Link -
https://csscoderecord.blogspot.com/2025/06/css-flex-box-output-properties-values.html/
1. Logo Link -
https://lh3.google.com/u/0/d/1Ek8TuJ5T6smVvtFCtJMjZT69dzgyTCNE=s320
https://lh3.google.com/u/0/d/1Ek8TuJ5T6smVvtFCtJMjZT69dzgyTCNE=s320
Flex Box: Reference
Properties: values; :
Index:
A. Perants (div/Content):
- display: a) flex; ( Enables flex layout )
- flex-direction: a) row; (default – horizontal left to right), b) row-reverse; c) row-reverse-start; d) row-reverse-end; e) column-reverse; f) column-reverse-start; g) column-reverse-end; h) start-left, i) start-right;
- justify-contant: - (horizontal alignment in a row) a) flex-start; b) flex-end; c) center; d) space-between, e) space-around, g) space-evenly
- align-items: (vertical alignment in a row) a) flex-start; b) flex-end; C) center; d) baseline; e) stretch;
- flex-wrap: a) nowrap; (default), b) wrap; C) wrap-reverse;
- align-content: (when wrapping) a) flex-start; b) flex-end; c) center; d) space-between; e) space-around; f) stretch;
Flexbox Reference
B. Child (div/Content):
- flex: a) 1; ( — shorthand for flex-grow: 1; flex-shrink: 1; flex-basis: 0%) /* to cover perant */
- flex-grow: a) 1; b) 2; c) 3; (— grows to fill space proportionally) /* to cover perant */
- flex-srinc: a) 0; b) 1; ( how much item shrinks when space is tight)
- flex-basis: 300px; ( initial size of flex item before space is distributed )
- order: 1, /2, /3; etc. — changes item position in layout
- align-self: a) auto; b) flex-start; c) flex-end; d) center; e) baseline; f) stretch;
- align-item: a) flex-start, b) flex-end, c) center; d) baseline; e) strech;
- justify-contant: a) center, a) flex-start; b) flex-end, d) space-between, e) space-around, ( container properties, usually used in permanent)
- justify-item: center, flex-start, flex-end, space-between, space-around,
- align-contant: centre, flex-start, flex-end, space-around, space-between;
- . perant:nth-child(1/2/3/4) {flex-grow: 2/3/4; /* individual size increase X-2/3/4 */} or
- . perant:nth-child(1/2/3/4) {flex-basis: 300px; /* individual size by 300px */}
- .parent > div:nth-child(2) {flex-grow: 3; /* make 2nd item grow 3x */}
- .parent > div:nth-child(3) {flex-basis: 300px; /* initial width of 300px for 3rd item*/
Details: (Links)
Output/Display: - Links
A (perant)
A.1. " direction: ;". Output/Display: Links
a) direction: flex; b) C) Xfguu
a) direction: flex;
b)
C)
A.2. " flex: ;". Output/Display: Links
a)b) C) Dgghfh
a)
b)
C)
Output/Display: - Links
B (Child)
B.1. " direction: ;". Output/Display: Links
a) direction: flex; b) C) Ttyvgy
B.1. " direction: ;". Output/Display: Links
a) direction: flex;
b)
C)
Ttyvgy
B.2. " flex: ;". Output/Display: Links
a)b) C)
a)
b)
C)
Full Code: - Links
A (perant)
A.1. - "direction: ; " Full Code: - Links
a) direction: flex; b) C)
a) direction: flex;
b)
C)
A.2. - "direction: ; " Full Code: - Links
a) direction: flex; b) C)
a) direction: flex;
b)
C)
Full Code: - Links
B (Child)
B.1. - " : ; " Full Code: - Links
a) direction: flex; b) C)
a) direction: flex;
b)
C)
B.2. - " : ; " Full Code: - Links
a) direction: flex; b) C)
Fghh
a) direction: flex;
b)
C)
Fghh
Project: Full Code:
Comments
Post a Comment