10 FlexBox
10 FlexBox
FlexBox -->
#### Definition:
- Flexbox is a CSS layout model that allows you to design a flexible and
responsive layout structure without using positioning.
1. **`display: flex;`**:
- Defines a flex container, enabling flex context for all its direct
children.
2. **`flex-direction`**:
3. **`flex-wrap`**:
5. **`align-items`**:
- Aligns flex items along the cross axis (vertically if `flex-direction:
row;`).
- Values:
- `stretch`: Default, items stretch to fill the container.
- `flex-start`: Items align to the start of the cross axis.
- `flex-end`: Items align to the end of the cross axis.
- `center`: Items align at the center of the cross axis.
6. **`align-content`**:
- Aligns flex lines when there's extra space in the cross axis.
- Values (similar to `justify-content` but applied to multiple lines):
- `flex-start`, `flex-end`, `center`, `space-between`, `space-around`,
`stretch`.
1. **`order`**:
2. **`flex-grow`**:
3. **`flex-shrink`**:
4. **`flex-basis`**:
5. **`align-self`**: