W3Schools 튜토리얼을 P-Reinforce v3.1 포맷으로 위키화(영어 본문, 한/영 섹션 헤더). - Topic_HTML: 59문서 (튜토리얼+예제, 레퍼런스/메타 제외) - Topic_CSS: 190문서 (메인 + Advanced/Flexbox/Grid/RWD 전체) - Topic_JavaScript: 120문서 (코어 언어; Temporal/DOM상세/BOM/WebAPI/AJAX/jQuery/Graphics 등은 후속) 각 폴더 00_INDEX.md(MOC) 포함. 코드 verbatim, 미확인분은 "Not found in source" 표기. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
5.7 KiB
id, title, category, status, verification_status, canonical_id, aliases, duplicate_of, source_trust_level, confidence_score, created_at, updated_at, review_reason, merge_history, tags, raw_sources, applied_in, github_commit
| id | title | category | status | verification_status | canonical_id | aliases | duplicate_of | source_trust_level | confidence_score | created_at | updated_at | review_reason | merge_history | tags | raw_sources | applied_in | github_commit | ||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| css-flex-items | CSS Flex Items | Frontend | draft | conceptual |
|
B | 0.89 | 2026-06-23 | 2026-06-23 |
|
|
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), andalign-self. [S1] align-selfoverrides the container — it overrides the default alignment set by the container'salign-itemsproperty. [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]
flexas a shorthand — combineflex-grow,flex-shrink, andflex-basisinto a singleflexdeclaration. [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]
<div class="flex-container">
<div style="order: 3">1</div>
<div style="order: 2">2</div>
<div style="order: 4">3</div>
<div style="order: 1">4</div>
</div>
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]
<div class="flex-container">
<div style="flex-grow: 1">1</div>
<div style="flex-grow: 1">2</div>
<div style="flex-grow: 4">3</div>
</div>
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]
<div class="flex-container">
<div>1</div>
<div>2</div>
<div style="flex-shrink: 2">3</div>
<div>4</div>
<div>5</div>
<div>6</div>
</div>
4. The flex-basis Property
The flex-basis property specifies the initial length of a flex item. [S1]
<div class="flex-container">
<div>1</div>
<div>2</div>
<div style="flex-basis: 250px">3</div>
<div>4</div>
</div>
5. The flex Property
The flex property is a shorthand property for the flex-grow, flex-shrink, and flex-basis properties. [S1]
<div class="flex-container">
<div>1</div>
<div>2</div>
<div style="flex: 1 0 150px">3</div>
<div>4</div>
</div>
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]
<div class="flex-container">
<div>1</div>
<div>2</div>
<div style="align-self: center">3</div>
<div>4</div>
</div>
<div class="flex-container">
<div>1</div>
<div style="align-self: flex-start">2</div>
<div style="align-self: flex-end">3</div>
<div>4</div>
</div>
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 <div> flex items inside a .flex-container. No external project/commit applications found in the source.
💻 코드 패턴 (Code patterns)
Control individual flex items (language: HTML/CSS):
<div class="flex-container">
<div style="order: 1">A</div>
<div style="flex-grow: 2">B</div>
<div style="flex: 1 0 150px">C</div>
<div style="align-self: center">D</div>
</div>
⚖️ 모순 및 업데이트 (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).