---
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: `
I have 16px margin on all sides.
`. [S1]
- Directional margin: `I have 16px margin on the top.
`. [S1]
- Section separation: `I am Blue
I am Green
` β 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
I am Blue
I am Green
```
## β
κ²μ¦ μν λ° μ λ’°λ
- **μν:** 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).