docs(10_Wiki): W3Schools 위키화 — HTML/CSS/JavaScript(core)

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>
This commit is contained in:
2026-06-23 19:21:18 +09:00
parent 8957890d13
commit 9609c04755
379 changed files with 54618 additions and 6 deletions
+154
View File
@@ -0,0 +1,154 @@
---
id: css-flexbox-container
title: "CSS Flexbox Container"
category: "Frontend"
status: "draft"
verification_status: "conceptual"
canonical_id: ""
aliases: ["flex container", "flex-direction", "flex-wrap", "flex-flow", "justify-content align-items align-content"]
duplicate_of: ""
source_trust_level: "B"
confidence_score: 0.86
created_at: 2026-06-23
updated_at: 2026-06-23
review_reason: ""
merge_history: []
tags: ["css", "web", "frontend", "w3schools", "flexbox", "layout"]
raw_sources: ["https://www.w3schools.com/css/css3_flexbox_container.asp"]
applied_in: []
github_commit: ""
---
# [[CSS Flexbox Container]]
## 🎯 한 줄 통찰 (One-line insight)
The flex container is the parent (set with `display: flex` or `inline-flex`) and exposes container-level properties — `flex-direction`, `flex-wrap`, `flex-flow`, `justify-content`, `align-items`, and `align-content` — that govern how its flex items are laid out and aligned. [S1]
## 🧠 핵심 개념 (Core concepts)
- **The container** — must be set to `flex` or `inline-flex` via the `display` property. [S1]
- **flex-direction** — sets the display-direction of flex items. [S1]
- **flex-wrap** — specifies whether the flex items should wrap or not. [S1]
- **flex-flow** — a shorthand property for setting both `flex-direction` and `flex-wrap`. [S1]
- **justify-content** — aligns the flex items when they do not use all available space on the main-axis (horizontally). [S1]
- **align-items** — aligns the flex items when they do not use all available space on the cross-axis (vertically). [S1]
- **align-content** — aligns the flex lines when there is extra space in the cross axis and flex items wrap. [S1]
## 🧩 추출된 패턴 (Extracted patterns)
- **Direction control** — switch the main axis with `flex-direction: row | column | row-reverse | column-reverse`. [S1]
- **Wrapping control** — allow multi-line layouts with `flex-wrap: nowrap | wrap | wrap-reverse`. [S1]
- **Shorthand** — combine direction and wrapping in one declaration, e.g. `flex-flow: row wrap`. [S1]
- **Axis alignment** — `justify-content` aligns on the main (horizontal) axis; `align-items` / `align-content` align on the cross (vertical) axis. [S1]
## 📖 세부 내용 (Details)
The flex container has seven key properties: `display` (must be set to `flex` or `inline-flex`), `flex-direction`, `flex-wrap`, `flex-flow`, `justify-content`, `align-items`, and `align-content`. [S1]
**flex-direction** — controls the display-direction of flex items, with the values demonstrated on the page: [S1]
```css
.flex-container {
display: flex;
flex-direction: row;
}
```
```css
.flex-container {
display: flex;
flex-direction: column;
}
```
```css
.flex-container {
display: flex;
flex-direction: row-reverse;
}
```
```css
.flex-container {
display: flex;
flex-direction: column-reverse;
}
```
The four values are: `row` (default — items left to right), `column` (items top to bottom), `row-reverse` (items right to left), and `column-reverse` (items bottom to top). [S1]
**flex-wrap** — specifies whether items wrap when space is insufficient, with the values demonstrated on the page: [S1]
```css
.flex-container {
display: flex;
flex-wrap: nowrap;
}
```
```css
.flex-container {
display: flex;
flex-wrap: wrap;
}
```
```css
.flex-container {
display: flex;
flex-wrap: wrap-reverse;
}
```
The three values are: `nowrap` (default — items don't wrap, shown as boxes 19 in a single line), `wrap` (items wrap onto multiple lines as needed), and `wrap-reverse` (items wrap in reverse order). [S1]
**flex-flow** — a shorthand property for setting both `flex-direction` and `flex-wrap`, demonstrated as: [S1]
```css
.flex-container {
display: flex;
flex-flow: row wrap;
}
```
**justify-content, align-items, align-content** — these properties are part of the container's property set (descriptions in the table below). On this page their specific demonstrated values were not captured in the fetched content; the source notes that horizontal alignment (`justify-content`) and vertical alignment (`align-items` & `align-content`) are covered on subpages. Specific value-by-value examples: Not found in source (for this page). [S1]
**CSS Flexbox container properties reference** [S1]
| Property | Description |
|----------|-------------|
| `display` | Must be set to `flex` or `inline-flex` |
| `flex-direction` | Sets the display-direction of flex items |
| `flex-wrap` | Specifies whether the flex items should wrap or not |
| `flex-flow` | A shorthand property for `flex-direction` and `flex-wrap` |
| `justify-content` | Aligns the flex items when they do not use all available space on the main-axis (horizontally) |
| `align-items` | Aligns the flex items when they do not use all available space on the cross-axis (vertically) |
| `align-content` | Aligns the flex lines when there is extra space in the cross axis and flex items wrap |
## 🛠️ 적용 사례 (Applied in summary)
The page's applied examples demonstrate each `flex-direction` value (`row`, `column`, `row-reverse`, `column-reverse`) on a `.flex-container`, each `flex-wrap` value (`nowrap`, `wrap`, `wrap-reverse`) with nine numbered boxes, and the `flex-flow: row wrap` shorthand. No external project/commit applications found in the source.
## 💻 코드 패턴 (Code patterns)
Set direction and wrapping (language: CSS):
```css
.flex-container {
display: flex;
flex-direction: row;
flex-wrap: wrap;
}
```
Shorthand equivalent (language: CSS):
```css
.flex-container {
display: flex;
flex-flow: row wrap;
}
```
## ⚖️ 모순 및 업데이트 (Contradictions & updates)
No contradictions found in the source.
## ✅ 검증 상태 및 신뢰도
- **상태:** draft
- **검증 단계:** conceptual (실제 적용 사례 발견 시 applied/validated로 승격 가능)
- **출처 신뢰도:** B (W3Schools — widely used educational reference, not a primary standards body)
- **신뢰 점수:** 0.86
- **중복 검사 결과:** 신규 생성 (New discovery)
## 🔗 지식 그래프 (Knowledge Graph)
- **상위/루트:** [[CSS Tutorial]]
- **관련 개념:** [[CSS Flexbox Intro]], [[CSS Flex Items]], [[CSS Grid]], [[CSS Media Queries]]
- **참조 맥락:** Referenced when configuring the parent flex container's direction, wrapping, and alignment behavior.
## 📚 출처 (Sources)
- [S1] W3Schools — CSS Flexbox Container — https://www.w3schools.com/css/css3_flexbox_container.asp
## 📝 변경 이력 (Change history)
- 2026-06-23: Initial draft synthesized from the W3Schools "CSS Flexbox Container" page (Astra wiki-curation, P-Reinforce v3.1 format).