--- id: w3css-bars title: "W3CSS Bars" category: "Programming_Language" status: "draft" verification_status: "conceptual" canonical_id: "" aliases: ["w3-bar", "w3-bar-block", "w3-bar-item", "W3.CSS λ°”"] duplicate_of: "" source_trust_level: "B" confidence_score: 0.87 created_at: 2026-07-04 updated_at: 2026-07-04 review_reason: "" merge_history: [] tags: ["w3css", "css-framework", "w3schools", "bars", "navigation"] raw_sources: ["https://www.w3schools.com/w3css/w3css_bars.asp"] applied_in: [] github_commit: "" --- # [[W3CSS Bars]] ## 🎯 ν•œ 쀄 톡찰 (One-line insight) `w3-bar` (horizontal) and `w3-bar-block` (vertical) are the exact same conceptual container differing only in ONE class name β€” meaning every color, hover, button, and responsive technique demonstrated for a horizontal bar transfers identically to a vertical sidebar, so this single chapter is really the foundation for both the later Navigation Bars AND Sidebar chapters. [S1] ## 🧠 핡심 κ°œλ… (Core concepts) - **`w3-bar`** β€” horizontal container for bar items. **`w3-bar-block`** β€” vertical container, same item classes apply. [S1] - **`w3-bar-item`** β€” provides correct spacing/padding/positioning for each item inside a bar; works on any element (`div`, `a`, etc.). [S1] - **Color + hover-color composability** β€” any `w3-color` class sets the bar's base color, and any `w3-hover-color` class can be added per-item for a distinct hover color. [S1] - **`w3-button`** β€” turns bar items (especially `` links) into clickable button-styled elements. [S1] - **`w3-mobile`** β€” makes bar items responsive (stack/adjust on small screens). [S1] - **`w3-right`** β€” right-aligns a specific bar item within the bar. [S1] ## πŸ“– μ„ΈλΆ€ λ‚΄μš© (Details) - Horizontal bar: `
London
Paris
Tokyo
`. [S1] - Vertical bar (same items, one class swapped): `
...
`. [S1] - Bar as navigation with buttons: `
London...
`. [S1] - Right-aligned last item: `Tokyo` as the final child. [S1] ## βš–οΈ λͺ¨μˆœ 및 μ—…λ°μ΄νŠΈ (Contradictions & updates) - ν˜„μž¬κΉŒμ§€ 발견된 λͺ¨μˆœ 사항 μ—†μŒ (No contradictions found in available sources). ## πŸ› οΈ 적용 사둀 (Applied in summary) ν˜„μž¬ 발견된 μ‹€μ œ 적용 사둀가 μ—†μŠ΅λ‹ˆλ‹€ β€” w3-bar ν•˜λ‚˜μ˜ 클래슀 ꡐ체(w3-bar-block)만으둜 μˆ˜ν‰/수직 λ„€λΉ„κ²Œμ΄μ…˜μ„ λͺ¨λ‘ λ§Œλ“œλŠ” νŒ¨ν„΄μ΄ λ‹€μŒ 챕터듀(Navigation, Sidebar)의 기반이 λœλ‹€. [S1] ## πŸ’» μ½”λ“œ νŒ¨ν„΄ (Code patterns) The same items in horizontal vs vertical bar β€” only the container class changes (HTML): ```html
Home Link 1
Home Link 1
``` ## βœ… 검증 μƒνƒœ 및 신뒰도 - **μƒνƒœ:** draft - **검증 단계:** conceptual - **좜처 신뒰도:** B (W3Schools β€” widely used educational reference, not a primary standards body) - **μ‹ λ’° 점수:** 0.87 - **쀑볡 검사 κ²°κ³Ό:** μ‹ κ·œ 생성 (New discovery) ## πŸ”— 지식 κ·Έλž˜ν”„ (Knowledge Graph) - **μƒμœ„/루트:** [[W3.CSS Tutorial]] - **κ΄€λ ¨ κ°œλ…:** [[W3CSS Effects]], [[W3CSS Dropdowns]], [[W3CSS Navigation]], [[W3CSS Sidebar]] - **μ°Έμ‘° λ§₯락:** Navigation Components μ„Ήμ…˜ 첫 ν•­λͺ©μ΄μž 기초 β€” λ“œλ‘­λ‹€μš΄(Dropdowns) μ±•ν„°λ‘œ 이어짐. ## πŸ“š 좜처 (Sources) - [S1] W3Schools β€” W3.CSS Bars β€” https://www.w3schools.com/w3css/w3css_bars.asp ## πŸ“ λ³€κ²½ 이λ ₯ (Change history) - 2026-07-04: Initial draft synthesized from the W3Schools "W3.CSS Bars" page (Astra wiki-curation, P-Reinforce v3.1 format).