docs(10_Wiki): Dev 폴더 누락분 반영 — Topic_Programming으로 통합
이전 재구성 작업에서 Dev/ 폴더가 누락되었던 것을 반영. - Dev/Topic_Programming(중첩 폴더, 78개)은 Dev 자체 최상위 폴더들 (Architecture/Conventions/Engineering_Intelligence 등)과 완전 중복이라 제거. - Dev 최상위 엔지니어링 지식 폴더(Architecture/Conventions/Engineering_Intelligence/ Failure_Library/Generalized_Principles/Language/Pattern_Catalog/Platform_Guides/ Subsystems, 77개)는 이미 Topic_Programming/Topic_Programming에 더 최신 버전이 존재해 중복 제거(고유 콘텐츠 1개는 예외 처리하여 이동 보존). - Dev의 W3Schools 언어 튜토리얼 폴더(Topic_C/CPP/CSS/CSharp/HOWTO/HTML/Java/ JavaScript/PHP/Python/SQL/W3CSS, 1201개)는 전부 Topic_Programming 하위로 이동. - 에이전트 운영 상태(.astra/docs)는 그대로 유지, 콘텐츠 폴더만 정리. - Topic_Programming 최종 문서 수: 2784 → 3985.
This commit is contained in:
@@ -0,0 +1,158 @@
|
||||
---
|
||||
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
|
||||
<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]
|
||||
```html
|
||||
<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]
|
||||
```html
|
||||
<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]
|
||||
```html
|
||||
<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]
|
||||
```html
|
||||
<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]
|
||||
```html
|
||||
<div class="flex-container">
|
||||
<div>1</div>
|
||||
<div>2</div>
|
||||
<div style="align-self: center">3</div>
|
||||
<div>4</div>
|
||||
</div>
|
||||
```
|
||||
```html
|
||||
<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):
|
||||
```html
|
||||
<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).
|
||||
Reference in New Issue
Block a user