---
id: css-flex-items
title: "CSS Flex Items"
category: "Frontend"
status: "draft"
verification_status: "conceptual"
canonical_id: ""
aliases: ["flex items", "flex-grow", "flex-shrink", "flex-basis", "order", "align-self", "flex shorthand"]
duplicate_of: ""
source_trust_level: "B"
confidence_score: 0.89
created_at: 2026-06-23
updated_at: 2026-06-23
review_reason: ""
merge_history: []
tags: ["css", "web", "frontend", "w3schools", "flexbox", "flex-items"]
raw_sources: ["https://www.w3schools.com/css/css3_flexbox_items.asp"]
applied_in: []
github_commit: ""
---
# [[CSS Flex Items]]
## π― ν μ€ ν΅μ°° (One-line insight)
The direct child elements of a flex container automatically become flex items, controllable through six properties: `order`, `flex-grow`, `flex-shrink`, `flex-basis`, `flex`, and `align-self`. [S1]
## π§ ν΅μ¬ κ°λ
(Core concepts)
- **Automatic flex items** β the direct child elements of a flex container automatically become flex items. [S1]
- **Six item-level properties** β `order`, `flex-grow`, `flex-shrink`, `flex-basis`, `flex` (shorthand), and `align-self`. [S1]
- **`align-self` overrides the container** β it overrides the default alignment set by the container's `align-items` property. [S1]
## π§© μΆμΆλ ν¨ν΄ (Extracted patterns)
- **Item properties go on the child, not the container** β these properties are set on individual flex items (often inline in the examples). [S1]
- **`flex` as a shorthand** β combine `flex-grow`, `flex-shrink`, and `flex-basis` into a single `flex` declaration. [S1]
## π μΈλΆ λ΄μ© (Details)
The direct child elements of a flex container automatically becomes flex items. Flex items can be controlled through six key properties. [S1]
**1. The `order` Property**
The `order` property specifies the display order of the flex items inside the flex container. The default value is 0, and the value must be a number. [S1]
```html
```
**2. The `flex-grow` Property**
The `flex-grow` property specifies how much a flex item will grow relative to the rest of the flex items. The default value is 0. [S1]
```html
```
**3. The `flex-shrink` Property**
The `flex-shrink` property specifies how much a flex item will shrink relative to the rest of the flex items. The default value is 1. [S1]
```html
```
**4. The `flex-basis` Property**
The `flex-basis` property specifies the initial length of a flex item. [S1]
```html
```
**5. The `flex` Property**
The `flex` property is a shorthand property for the `flex-grow`, `flex-shrink`, and `flex-basis` properties. [S1]
```html
```
**6. The `align-self` Property**
The `align-self` property specifies the alignment for the selected item inside the flexible container. This property overrides the default alignment set by the container's `align-items` property. [S1]
```html
```
```html
```
**Flex Item Properties Table** [S1]
| Property | Description |
|----------|-------------|
| `align-self` | Overrides container's `align-items` for individual items |
| `flex` | Shorthand for `flex-grow`, `flex-shrink`, `flex-basis` |
| `flex-basis` | Sets initial length |
| `flex-grow` | Controls growth rate relative to siblings |
| `flex-shrink` | Controls shrinkage rate relative to siblings |
| `order` | Specifies display sequence |
## π οΈ μ μ© μ¬λ‘ (Applied in summary)
The page's own examples apply each property inline on `` flex items inside a `.flex-container`. No external project/commit applications found in the source.
## π» μ½λ ν¨ν΄ (Code patterns)
Control individual flex items (language: HTML/CSS):
```html
```
## βοΈ λͺ¨μ λ° μ
λ°μ΄νΈ (Contradictions & updates)
No contradictions found in the source.
## β
κ²μ¦ μν λ° μ λ’°λ
- **μν:** draft
- **κ²μ¦ λ¨κ³:** conceptual (μ€μ μ μ© μ¬λ‘ λ°κ²¬ μ applied/validatedλ‘ μΉκ²© κ°λ₯)
- **μΆμ² μ λ’°λ:** B (W3Schools β widely used educational reference, not a primary standards body)
- **μ λ’° μ μ:** 0.89
- **μ€λ³΅ κ²μ¬ κ²°κ³Ό:** μ κ· μμ± (New discovery)
## π μ§μ κ·Έλν (Knowledge Graph)
- **μμ/루νΈ:** [[CSS Tutorial]]
- **κ΄λ ¨ κ°λ
:** [[CSS Flexbox Justify Content]], [[CSS Flexbox Align Items]], [[CSS Flexbox Responsive]]
- **μ°Έμ‘° λ§₯λ½:** Referenced whenever controlling the order, growth, shrinkage, basis, or self-alignment of individual flex children.
## π μΆμ² (Sources)
- [S1] W3Schools β CSS Flex Items β https://www.w3schools.com/css/css3_flexbox_items.asp
## π λ³κ²½ μ΄λ ₯ (Change history)
- 2026-06-23: Initial draft synthesized from the W3Schools "CSS Flex Items" page (Astra wiki-curation, P-Reinforce v3.1 format).