--- id: w3css-padding title: "W3CSS Padding" category: "Programming_Language" status: "draft" verification_status: "conceptual" canonical_id: "" aliases: ["w3-padding classes", "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", "padding"] raw_sources: ["https://www.w3schools.com/w3css/w3css_padding.asp"] applied_in: [] github_commit: "" --- # [[W3CSS Padding]] ## 🎯 ν•œ 쀄 톡찰 (One-line insight) W3.CSS splits padding into TWO separate class families with different behavior β€” "number" classes (`w3-padding-16` through `w3-padding-64`) add ONLY top/bottom padding, while "size" classes (`w3-padding-small`/`w3-padding`/`w3-padding-large`) add ALL FOUR sides at different top/bottom vs. left/right ratios β€” meaning the choice of class family determines whether you're adjusting vertical space alone or the whole box uniformly. [S1] ## 🧠 핡심 κ°œλ… (Core concepts) - **Padding-number classes** β€” `w3-padding-16/24/32/48/64` add ONLY top+bottom padding at that pixel value. [S1] - **Padding-size classes** β€” `w3-padding-small` (4px top/bottom, 8px left/right), `w3-padding` (8px/16px), `w3-padding-large` (12px/24px) β€” all FOUR sides, with left/right always double the top/bottom value. [S1] ## πŸ“– μ„ΈλΆ€ λ‚΄μš© (Details) - Number class: `

I have 16px top and bottom padding.

`. [S1] - Size class: `

I have 12px top and bottom padding and 24px left and right padding.

`. [S1] ## βš–οΈ λͺ¨μˆœ 및 μ—…λ°μ΄νŠΈ (Contradictions & updates) - **두 클래슀 κ³„μ—΄μ˜ λ°©ν–₯ 차이**: 숫자 ν΄λž˜μŠ€λŠ” μƒν•˜ νŒ¨λ”©λ§Œ, 크기 ν΄λž˜μŠ€λŠ” 4λ©΄ λͺ¨λ‘(μ’Œμš°κ°€ μƒν•˜μ˜ 2λ°°) μ μš©ν•œλ‹€λŠ” 점이 λͺ…ν™•νžˆ ꡬ뢄됨. [S1] ## πŸ› οΈ 적용 사둀 (Applied in summary) ν˜„μž¬ 발견된 μ‹€μ œ 적용 사둀가 μ—†μŠ΅λ‹ˆλ‹€ β€” νŒ¨λ„ λ‚΄λΆ€ 여백을 μ„Έλ°€ν•˜κ²Œ μ‘°μ •ν•  λ•Œ 숫자/크기 클래슀 쀑 μ„ νƒν•˜λŠ” 것이 μ‹€μ „ λ ˆμ΄μ•„μ›ƒ μ‘°μ •μ˜ 기쀀이닀. [S1] ## πŸ’» μ½”λ“œ νŒ¨ν„΄ (Code patterns) Size class applying padding to all four sides asymmetrically (HTML): ```html

12px top/bottom, 24px left/right β€” left/right is always 2x top/bottom.

``` ## βœ… 검증 μƒνƒœ 및 신뒰도 - **μƒνƒœ:** draft - **검증 단계:** conceptual - **좜처 신뒰도:** B (W3Schools β€” widely used educational reference, not a primary standards body) - **μ‹ λ’° 점수:** 0.88 - **쀑볡 검사 κ²°κ³Ό:** μ‹ κ·œ 생성 (New discovery) ## πŸ”— 지식 κ·Έλž˜ν”„ (Knowledge Graph) - **μƒμœ„/루트:** [[W3.CSS Tutorial]] - **κ΄€λ ¨ κ°œλ…:** [[W3CSS Round]], [[W3CSS Margins]] - **μ°Έμ‘° λ§₯락:** μ—¬λ°±(padding) μ‹œμŠ€ν…œ β€” λ§ˆμ§„(Margins) μ±•ν„°λ‘œ 이어짐. ## πŸ“š 좜처 (Sources) - [S1] W3Schools β€” W3.CSS Padding β€” https://www.w3schools.com/w3css/w3css_padding.asp ## πŸ“ λ³€κ²½ 이λ ₯ (Change history) - 2026-07-04: Initial draft synthesized from the W3Schools "W3.CSS Padding" page (Astra wiki-curation, P-Reinforce v3.1 format).