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,76 @@
|
||||
---
|
||||
id: w3css-flex-items
|
||||
title: "W3CSS Flex Items"
|
||||
category: "Programming_Language"
|
||||
status: "draft"
|
||||
verification_status: "conceptual"
|
||||
canonical_id: ""
|
||||
aliases: ["flex-grow", "flex-shrink", "order property", "W3.CSS 플렉스 아이템"]
|
||||
duplicate_of: ""
|
||||
source_trust_level: "B"
|
||||
confidence_score: 0.88
|
||||
created_at: 2026-07-04
|
||||
updated_at: 2026-07-04
|
||||
review_reason: ""
|
||||
merge_history: []
|
||||
tags: ["w3css", "css-framework", "w3schools", "flexbox", "flex-items"]
|
||||
raw_sources: ["https://www.w3schools.com/w3css/w3css_flex_items.asp"]
|
||||
applied_in: []
|
||||
github_commit: ""
|
||||
---
|
||||
|
||||
# [[W3CSS Flex Items]]
|
||||
|
||||
## 🎯 한 줄 통찰 (One-line insight)
|
||||
The `order` property completely decouples VISUAL order from SOURCE-CODE order — an item written fourth in the HTML can be assigned `order:1` and appear FIRST on screen, meaning flexbox lets you reorder content visually without touching the underlying markup, useful for responsive layouts where mobile/desktop need different visual sequences from the same HTML. [S1]
|
||||
|
||||
## 🧠 핵심 개념 (Core concepts)
|
||||
- **`order`** — controls visual display order independent of HTML source order (default 0). [S1]
|
||||
- **`flex-grow`** — how much an item grows relative to siblings when extra space is available; default 0 (no growth). [S1]
|
||||
- **`flex-shrink`** — how much an item shrinks relative to siblings when space is tight; default 1 (shrinks normally); `flex-shrink:0` prevents an item from shrinking at all. [S1]
|
||||
- **`flex-basis`** — the item's initial size before grow/shrink calculations apply. [S1]
|
||||
- **`flex`** — shorthand for `flex-grow flex-shrink flex-basis` in one declaration. [S1]
|
||||
- **`align-self`** — overrides the container's `align-items` value for ONE specific item. [S1]
|
||||
|
||||
## 📖 세부 내용 (Details)
|
||||
- Reordering via `order`: `<div style="order: 3">1</div><div style="order: 2">2</div><div style="order: 4">3</div><div style="order: 1">4</div>` — displays as 4,2,1,3 despite source order 1,2,3,4. [S1]
|
||||
- Disproportionate growth: `<div style="flex-grow: 1">1</div><div style="flex-grow: 8">2</div><div style="flex-grow: 1">3</div>` — middle item grows 8x faster. [S1]
|
||||
- Preventing shrink on one item: `<div style="flex-shrink: 0">3</div>` among otherwise normally-shrinking siblings. [S1]
|
||||
- Combined shorthand: `<div style="flex: 0 0 200px">3</div>` — not growable, not shrinkable, fixed at 200px. [S1]
|
||||
- Per-item alignment override: `<div style="align-self:center">3</div>` centers just this one item regardless of the container's `align-items`. [S1]
|
||||
|
||||
## ⚖️ 모순 및 업데이트 (Contradictions & updates)
|
||||
- **order의 시각적/소스코드 순서 분리**: HTML 작성 순서와 무관하게 order 값만으로 화면상 표시 순서를 완전히 재배치할 수 있다는 점이 4개 아이템 예제로 직접 증명됨. [S1]
|
||||
|
||||
## 🛠️ 적용 사례 (Applied in summary)
|
||||
현재 발견된 실제 적용 사례가 없습니다 — 모바일과 데스크톱에서 콘텐츠 순서를 다르게 보여줘야 할 때 HTML 수정 없이 order 값만 조정하는 것이 실전 반응형 디자인의 대표 기법이다. [S1]
|
||||
|
||||
## 💻 코드 패턴 (Code patterns)
|
||||
Reordering flex items independent of HTML source order (HTML/CSS):
|
||||
```html
|
||||
<div class="w3-flex">
|
||||
<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>
|
||||
<!-- Displays as: 4, 2, 1, 3 -->
|
||||
```
|
||||
|
||||
## ✅ 검증 상태 및 신뢰도
|
||||
- **상태:** draft
|
||||
- **검증 단계:** conceptual
|
||||
- **출처 신뢰도:** B (W3Schools — widely used educational reference, not a primary standards body)
|
||||
- **신뢰 점수:** 0.88
|
||||
- **중복 검사 결과:** 신규 생성 (New discovery)
|
||||
|
||||
## 🔗 지식 그래프 (Knowledge Graph)
|
||||
- **상위/루트:** [[W3.CSS Tutorial]]
|
||||
- **관련 개념:** [[W3CSS Flexbox]], [[W3CSS Rows]]
|
||||
- **참조 맥락:** 개별 플렉스 아이템 제어 — 반응형 행(Rows) 시스템 챕터로 이어짐.
|
||||
|
||||
## 📚 출처 (Sources)
|
||||
- [S1] W3Schools — W3.CSS Flex Items — https://www.w3schools.com/w3css/w3css_flex_items.asp
|
||||
|
||||
## 📝 변경 이력 (Change history)
|
||||
- 2026-07-04: Initial draft synthesized from the W3Schools "W3.CSS Flex Items" page (Astra wiki-curation, P-Reinforce v3.1 format).
|
||||
Reference in New Issue
Block a user