--- id: w3css-panels title: "W3CSS Panels" category: "Programming_Language" status: "draft" verification_status: "conceptual" canonical_id: "" aliases: ["w3-panel", "W3.CSS νŒ¨λ„"] duplicate_of: "" source_trust_level: "B" confidence_score: 0.9 created_at: 2026-07-04 updated_at: 2026-07-04 review_reason: "" merge_history: [] tags: ["w3css", "css-framework", "w3schools", "panels"] raw_sources: ["https://www.w3schools.com/w3css/w3css_panels.asp"] applied_in: [] github_commit: "" --- # [[W3CSS Panels]] ## 🎯 ν•œ 쀄 톡찰 (One-line insight) `w3-panel` is just `w3-container` plus 16px top/bottom margin β€” one small structural difference that makes it the base class for FOUR distinct UI patterns (notes, quotes, alerts, cards) purely by combining it with different color/style modifier classes, rather than needing four separate component classes. [S1] ## 🧠 핡심 κ°œλ… (Core concepts) - **`w3-panel`** β€” adds 16px top/bottom margin AND 16px left/right padding (container + vertical spacing). [S1] - **Notes** β€” panel + pale color (e.g. `w3-pale-green`). [S1] - **Quotes** β€” panel + `w3-leftbar w3-sand w3-xxlarge w3-serif`. [S1] - **Alerts** β€” panel + strong/saturated color (e.g. plain `w3-red`). [S1] - **Cards** β€” panel + `w3-card-4`. [S1] - **Show/hide via inline `onclick`** β€” no JS file needed; `this.parentElement.style.display='none'` closes a panel; `document.getElementById(...).style.display='block'` reopens it. [S1] ## πŸ“– μ„ΈλΆ€ λ‚΄μš© (Details) - Basic panel: `

I am a panel.

`. [S1] - Note styling: `

...

`. [S1] - Quote styling: `

"Make it as simple as possible, but not simpler."

`. [S1] - Hide a panel: `X`. [S1] - Show a hidden panel: ``. [S1] ## βš–οΈ λͺ¨μˆœ 및 μ—…λ°μ΄νŠΈ (Contradictions & updates) μ†ŒμŠ€μ—μ„œ λͺ¨μˆœλ˜λŠ” μ •λ³΄λŠ” λ°œκ²¬λ˜μ§€ μ•ŠμŒ. ## πŸ› οΈ 적용 사둀 (Applied in summary) ν˜„μž¬ 발견된 μ‹€μ œ 적용 사둀가 μ—†μŠ΅λ‹ˆλ‹€ β€” ν•˜λ‚˜μ˜ w3-panel 기반 클래슀둜 λ…ΈνŠΈ/인용문/μ•Œλ¦Ό/μΉ΄λ“œ 4κ°€μ§€ UI νŒ¨ν„΄μ„ κ΅¬ν˜„ν•˜λŠ” 것이 클래슀 μ‘°ν•© μ„€κ³„μ˜ λŒ€ν‘œ 사둀닀. [S1] ## πŸ’» μ½”λ“œ νŒ¨ν„΄ (Code patterns) Dismissible panel using inline onclick, no JS file needed (HTML): ```html
X

Click on the X to close this panel.

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