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,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