--- 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`: `
1
2
3
4
` — displays as 4,2,1,3 despite source order 1,2,3,4. [S1] - Disproportionate growth: `
1
2
3
` — middle item grows 8x faster. [S1] - Preventing shrink on one item: `
3
` among otherwise normally-shrinking siblings. [S1] - Combined shorthand: `
3
` — not growable, not shrinkable, fixed at 200px. [S1] - Per-item alignment override: `
3
` 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
1
2
3
4
``` ## ✅ 검증 상태 및 신뢰도 - **상태:** 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).