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,104 @@
|
||||
---
|
||||
id: css-grid-container
|
||||
title: "CSS Grid Container"
|
||||
category: "Frontend"
|
||||
status: "draft"
|
||||
verification_status: "conceptual"
|
||||
canonical_id: ""
|
||||
aliases: ["grid container", "display grid", "display inline-grid", "grid parent element", "grid container properties"]
|
||||
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", "grid", "container"]
|
||||
raw_sources: ["https://www.w3schools.com/css/css_grid_container.asp"]
|
||||
applied_in: []
|
||||
github_commit: ""
|
||||
---
|
||||
|
||||
# [[CSS Grid Container]]
|
||||
|
||||
## 🎯 한 줄 통찰 (One-line insight)
|
||||
A grid container contains one or more grid items arranged in columns and rows; an element becomes a grid container by setting `display` to `grid` or `inline-grid`, and all its direct children automatically become grid items. [S1]
|
||||
|
||||
## 🧠 핵심 개념 (Core concepts)
|
||||
- **Grid container definition** — a grid container contains one or more grid items arranged in columns and rows. [S1]
|
||||
- **Automatic grid items** — all direct child elements of a grid container automatically become grid items. [S1]
|
||||
- **Two display modes** — set `display: grid` (block-level) or `display: inline-grid` (inline) to make the container. [S1]
|
||||
- **Container-level properties** — alignment and sizing are controlled by container properties such as `justify-content`, `align-content`, `align-items`, `grid-template-columns`, `grid-template-rows`, `column-gap`, `row-gap`, `gap`, and `place-content`. [S1]
|
||||
|
||||
## 🧩 추출된 패턴 (Extracted patterns)
|
||||
- **Declare the container first** — set `display: grid` (or `inline-grid`) before any grid-template or alignment property takes effect. [S1]
|
||||
- **Alignment lives on the container** — `justify-content` aligns items horizontally; `align-content` aligns them vertically inside the container. [S1]
|
||||
|
||||
## 📖 세부 내용 (Details)
|
||||
A grid container contains one or more grid items arranged in columns and rows. All direct child elements of a grid container automatically become grid items. An element becomes a grid container by setting the `display` property to `grid` or `inline-grid`. [S1]
|
||||
|
||||
**Block-level grid** — use `display: grid` to make a block-level grid container. [S1]
|
||||
```css
|
||||
.container {
|
||||
display: grid;
|
||||
}
|
||||
```
|
||||
|
||||
**Inline grid** — use `display: inline-grid` to make an inline grid container. [S1]
|
||||
```css
|
||||
.container {
|
||||
display: inline-grid;
|
||||
}
|
||||
```
|
||||
|
||||
**Grid Container Properties** [S1]
|
||||
|
||||
| Property | Description |
|
||||
|----------|-------------|
|
||||
| `align-content` | Vertically aligns the grid items inside the container |
|
||||
| `align-items` | Specifies the default alignment for items inside a flexbox or grid container |
|
||||
| `column-gap` | Specifies the gap between the columns |
|
||||
| `gap` | A shorthand property for the `row-gap` and the `column-gap` properties |
|
||||
| `grid-template-columns` | Specifies the size of the columns, and how many columns in a grid layout |
|
||||
| `grid-template-rows` | Specifies the size of the rows in a grid layout |
|
||||
| `justify-content` | Horizontally aligns the grid items inside the container |
|
||||
| `row-gap` | Specifies the gap between the grid rows |
|
||||
| `place-content` | A shorthand property for the `align-content` and the `justify-content` properties |
|
||||
|
||||
The page also presents interactive "Try it Yourself" examples demonstrating `justify-content` and `align-content` with various values; the literal CSS source for those alignment-value examples is only available behind the "Try it Yourself" buttons and was: Not found in source.
|
||||
|
||||
## 🛠️ 적용 사례 (Applied in summary)
|
||||
The page's own examples apply `display: grid` and `display: inline-grid` to a `.container`. No external project/commit applications found in the source.
|
||||
|
||||
## 💻 코드 패턴 (Code patterns)
|
||||
Declare a grid container (language: CSS):
|
||||
```css
|
||||
.container {
|
||||
display: grid; /* or inline-grid */
|
||||
}
|
||||
```
|
||||
|
||||
## ⚖️ 비교 및 선택 기준 (Comparison & decision criteria)
|
||||
- **`display: grid`** — makes a block-level grid container. [S1]
|
||||
- **`display: inline-grid`** — makes an inline grid container. [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.86
|
||||
- **중복 검사 결과:** 신규 생성 (New discovery). 일부 정렬 값 예제 코드는 출처에 인라인으로 표시되지 않음 (Not found in source).
|
||||
|
||||
## 🔗 지식 그래프 (Knowledge Graph)
|
||||
- **상위/루트:** [[CSS Tutorial]]
|
||||
- **관련 개념:** [[CSS Grid Intro]], [[CSS Grid Tracks]], [[CSS Grid Gaps]]
|
||||
- **참조 맥락:** Referenced whenever establishing the parent element of a grid and configuring its container-level alignment and sizing.
|
||||
|
||||
## 📚 출처 (Sources)
|
||||
- [S1] W3Schools — CSS Grid Container — https://www.w3schools.com/css/css_grid_container.asp
|
||||
|
||||
## 📝 변경 이력 (Change history)
|
||||
- 2026-06-23: Initial draft synthesized from the W3Schools "CSS Grid Container" page (Astra wiki-curation, P-Reinforce v3.1 format).
|
||||
Reference in New Issue
Block a user