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:
@@ -0,0 +1,123 @@
|
||||
---
|
||||
id: css-flexbox-justify-content
|
||||
title: "CSS Flexbox Justify Content"
|
||||
category: "Frontend"
|
||||
status: "draft"
|
||||
verification_status: "conceptual"
|
||||
canonical_id: ""
|
||||
aliases: ["justify-content", "flexbox main-axis alignment", "flex justify", "horizontal flex alignment", "space-between flexbox"]
|
||||
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", "justify-content"]
|
||||
raw_sources: ["https://www.w3schools.com/css/css3_flexbox_container_justify.asp"]
|
||||
applied_in: []
|
||||
github_commit: ""
|
||||
---
|
||||
|
||||
# [[CSS Flexbox Justify Content]]
|
||||
|
||||
## 🎯 한 줄 통찰 (One-line insight)
|
||||
The `justify-content` property aligns flex items along the main-axis (horizontally) within a flex container, offering values from simple edge/center alignment to several space-distribution modes. [S1]
|
||||
|
||||
## 🧠 핵심 개념 (Core concepts)
|
||||
- **Main-axis alignment** — `justify-content` controls how flex items are positioned along the main-axis (horizontally) inside a flex container. [S1]
|
||||
- **Default is `flex-start`** — items align at the beginning of the container unless another value is set. [S1]
|
||||
- **Two families of values** — positional (`center`, `flex-start`, `flex-end`) and space-distribution (`space-around`, `space-between`, `space-evenly`). [S1]
|
||||
|
||||
## 🧩 추출된 패턴 (Extracted patterns)
|
||||
- **Apply on the container** — `justify-content` is always declared on the element with `display: flex`, not on the items. [S1]
|
||||
- **Space distribution choice** — pick `space-between` (no outer space), `space-around` (half-size outer space), or `space-evenly` (equal space everywhere) depending on the desired edge gaps. [S1]
|
||||
|
||||
## 📖 세부 내용 (Details)
|
||||
The `justify-content` property aligns the flex items along the main-axis (horizontally) within a flex container. [S1]
|
||||
|
||||
**`center`** — aligns the flex items in the center of the container. [S1]
|
||||
```css
|
||||
.flex-container {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
}
|
||||
```
|
||||
|
||||
**`flex-start`** — aligns the flex items at the beginning of the container (this is default). [S1]
|
||||
```css
|
||||
.flex-container {
|
||||
display: flex;
|
||||
justify-content: flex-start;
|
||||
}
|
||||
```
|
||||
|
||||
**`flex-end`** — aligns the flex items at the end of the container. [S1]
|
||||
```css
|
||||
.flex-container {
|
||||
display: flex;
|
||||
justify-content: flex-end;
|
||||
}
|
||||
```
|
||||
|
||||
**`space-around`** — displays the flex items with space before, between, and after the lines. [S1]
|
||||
```css
|
||||
.flex-container {
|
||||
display: flex;
|
||||
justify-content: space-around;
|
||||
}
|
||||
```
|
||||
|
||||
**`space-between`** — displays the flex items with space between the lines. [S1]
|
||||
```css
|
||||
.flex-container {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
}
|
||||
```
|
||||
|
||||
**`space-evenly`** — displays the flex items with equal space around them. [S1]
|
||||
```css
|
||||
.flex-container {
|
||||
display: flex;
|
||||
justify-content: space-evenly;
|
||||
}
|
||||
```
|
||||
|
||||
## 🛠️ 적용 사례 (Applied in summary)
|
||||
The page's own examples apply each value to a `.flex-container` declared with `display: flex`. No external project/commit applications found in the source.
|
||||
|
||||
## 💻 코드 패턴 (Code patterns)
|
||||
Align flex items on the main-axis (language: CSS):
|
||||
```css
|
||||
.flex-container {
|
||||
display: flex;
|
||||
justify-content: center; /* or flex-start | flex-end | space-around | space-between | space-evenly */
|
||||
}
|
||||
```
|
||||
|
||||
## ⚖️ 비교 및 선택 기준 (Comparison & decision criteria)
|
||||
- **`space-between`** — no space before the first or after the last item; full gaps only between items. [S1]
|
||||
- **`space-around`** — space before, between, and after the lines (outer gaps are half the inner gaps). [S1]
|
||||
- **`space-evenly`** — equal space around every item, including the container edges. [S1]
|
||||
|
||||
## ⚖️ 모순 및 업데이트 (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 Align Items]], [[CSS Flex Items]], [[CSS Flexbox Responsive]]
|
||||
- **참조 맥락:** Referenced whenever positioning flex items horizontally along the main-axis of a flex container.
|
||||
|
||||
## 📚 출처 (Sources)
|
||||
- [S1] W3Schools — CSS Flexbox Justify Content — https://www.w3schools.com/css/css3_flexbox_container_justify.asp
|
||||
|
||||
## 📝 변경 이력 (Change history)
|
||||
- 2026-06-23: Initial draft synthesized from the W3Schools "CSS Flexbox Justify Content" page (Astra wiki-curation, P-Reinforce v3.1 format).
|
||||
Reference in New Issue
Block a user