Files
2nd/10_Wiki/Dev/Topic_W3CSS/W3CSS_Margins.md
T
Antigravity Agent 1cfd3bbb56 docs(10_Wiki): 위키 구조 정리 — 언어 튜토리얼 카테고리 폴더 제거 + 신규 자산 동기화
Topic_CSS/Topic_HTML/Topic_JavaScript/Topic_Prompt/Topic_Comfyui 등 기존 카테고리 폴더를 정리하고,
Topic_Graphic/Dev 등 신규 산출물과 Topics 내부 세션/메모리 기록을 동기화.
2026-07-05 00:10:59 +09:00

67 lines
3.2 KiB
Markdown

---
id: w3css-margins
title: "W3CSS Margins"
category: "Programming_Language"
status: "draft"
verification_status: "conceptual"
canonical_id: ""
aliases: ["w3-margin", "w3-section", "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", "margins"]
raw_sources: ["https://www.w3schools.com/w3css/w3css_margins.asp"]
applied_in: []
github_commit: ""
---
# [[W3CSS Margins]]
## 🎯 한 줄 통찰 (One-line insight)
`w3-section` exists specifically because many HTML elements have NO default top/bottom margin — the source demonstrates two colored blocks touching with zero gap between them until `w3-section` is added, showing this class solves a real visual problem (elements running together) rather than being purely decorative. [S1]
## 🧠 핵심 개념 (Core concepts)
- **`w3-margin`** — 16px margin on ALL sides. [S1]
- **`w3-margin-{top,right,bottom,left}`** — 16px margin on one specific side. [S1]
- **`w3-section`** — 16px TOP and BOTTOM margin, specifically to separate stacked elements that lack default spacing. [S1]
## 📖 세부 내용 (Details)
- All-sides margin: `<div class="w3-container w3-margin"><p>I have 16px margin on all sides.</p></div>`. [S1]
- Directional margin: `<div class="w3-container w3-margin-top"><p>I have 16px margin on the top.</p></div>`. [S1]
- Section separation: `<div class="w3-container w3-section w3-blue"><h1>I am Blue</h1></div> <div class="w3-container w3-section w3-green"><h1>I am Green</h1></div>` — without `w3-section`, the two blocks would touch with no gap. [S1]
## ⚖️ 모순 및 업데이트 (Contradictions & updates)
- **기본 마진이 없는 요소 문제**: 많은 HTML 요소에 기본 상하 마진이 없어 서로 붙어버리는 문제를 w3-section이 해결한다는 점이 시각적 비교로 증명됨. [S1]
## 🛠️ 적용 사례 (Applied in summary)
현재 발견된 실제 적용 사례가 없습니다 — 연속된 컨테이너 블록들을 w3-section으로 구분하는 것이 레이아웃 분리의 대표 실전 사례다. [S1]
## 💻 코드 패턴 (Code patterns)
Separating stacked blocks with w3-section (HTML):
```html
<div class="w3-container w3-section w3-blue"><h1>I am Blue</h1></div>
<div class="w3-container w3-section w3-green"><h1>I am Green</h1></div>
```
## ✅ 검증 상태 및 신뢰도
- **상태:** draft
- **검증 단계:** conceptual
- **출처 신뢰도:** B (W3Schools — widely used educational reference, not a primary standards body)
- **신뢰 점수:** 0.88
- **중복 검사 결과:** 신규 생성 (New discovery)
## 🔗 지식 그래프 (Knowledge Graph)
- **상위/루트:** [[W3.CSS Tutorial]]
- **관련 개념:** [[W3CSS Padding]], [[W3CSS RTL]]
- **참조 맥락:** 마진 시스템 — RTL(오른쪽에서 왼쪽) 레이아웃 챕터로 이어짐.
## 📚 출처 (Sources)
- [S1] W3Schools — W3.CSS Margins — https://www.w3schools.com/w3css/w3css_margins.asp
## 📝 변경 이력 (Change history)
- 2026-07-04: Initial draft synthesized from the W3Schools "W3.CSS Margins" page (Astra wiki-curation, P-Reinforce v3.1 format).