--- id: w3css-borders title: "W3CSS Borders" category: "Programming_Language" status: "draft" verification_status: "conceptual" canonical_id: "" aliases: ["w3-border", "w3-leftbar", "W3.CSS ν λ리"] duplicate_of: "" source_trust_level: "B" confidence_score: 0.89 created_at: 2026-07-04 updated_at: 2026-07-04 review_reason: "" merge_history: [] tags: ["w3css", "css-framework", "w3schools", "borders"] raw_sources: ["https://www.w3schools.com/w3css/w3css_borders.asp"] applied_in: [] github_commit: "" --- # [[W3CSS Borders]] ## π― ν μ€ ν΅μ°° (One-line insight) A border can be made "invisible" yet still functional as a hover trigger β setting `border:16px solid white` on an element paired with `w3-hover-border-green` creates a thick border that's visually undetectable against a white background until hovered, at which point it visibly appears in green, a trick that relies on the border occupying space without being seen. [S1] ## π§ ν΅μ¬ κ°λ (Core concepts) - **`w3-border` / `w3-border-{top,right,bottom,left}`** β adds borders to specific sides; `w3-border-0` removes all borders. [S1] - **`w3-border-COLOR`** β sets border color (e.g. `w3-border-red`). [S1] - **`w3-round-{small,large,xlarge,xxlarge}`** β rounds border corners at different intensities; plain `w3-round` is the default rounding. [S1] - **`w3-topbar` / `w3-bottombar` / `w3-leftbar` / `w3-rightbar`** β add THICK single-side borders (heavier than normal `w3-border-*`). [S1] - **`w3-hover-border-COLOR`** β changes border color specifically on mouse hover. [S1] - **Invisible-until-hover border trick** β a white/matching-background border becomes visible only on hover via `w3-hover-border-*`. [S1] ## π μΈλΆ λ΄μ© (Details) - Directional borders: `
I have only a left border.
I have red borders.
Thick (invisible) border that turns green on hover.
Thick (invisible) border that turns green on hover.