--- id: css-border-style title: "CSS Border Style" category: "Frontend" status: "draft" verification_status: "conceptual" canonical_id: "" aliases: ["border-style", "CSS border style", "border types", "dotted border", "solid border"] duplicate_of: "" source_trust_level: "B" confidence_score: 0.9 created_at: 2026-06-23 updated_at: 2026-06-23 review_reason: "" merge_history: [] tags: ["css", "web", "frontend", "w3schools", "border", "border-style"] raw_sources: ["https://www.w3schools.com/css/css_border.asp"] applied_in: [] github_commit: "" --- # [[CSS Border Style]] ## 🎯 ν•œ 쀄 톡찰 (One-line insight) The `border-style` property specifies what kind of border to display and is the gatekeeper of all border styling β€” none of the other border properties (width, color) have any effect unless `border-style` is set. [S1] ## 🧠 핡심 κ°œλ… (Core concepts) - **CSS border properties** allow you to specify the style, width, and color of an element's border. [S1] - **`border-style`** specifies what kind of border to display. [S1] - **`border-style` is required** β€” none of the other CSS border properties will have any effect unless `border-style` is set. [S1] - **Per-side values** β€” the `border-style` property can take from one to four values, applied to the top, right, bottom, and left borders respectively. [S1] ## 🧩 μΆ”μΆœλœ νŒ¨ν„΄ (Extracted patterns) - **Style-first rule** β€” always declare `border-style` before width/color; the others are inert without it. [S1] - **One-to-four value shorthand** β€” a single `border-style` declaration can style all four sides at once (e.g. `dotted dashed solid double`). [S1] ## πŸ“– μ„ΈλΆ€ λ‚΄μš© (Details) **Border Style** [S1] The `border-style` property specifies what kind of border to display. The following values are allowed: [S1] | Value | Meaning | |-------|---------| | `dotted` | Defines a dotted border | | `dashed` | Defines a dashed border | | `solid` | Defines a solid border | | `double` | Defines a double border | | `groove` | Defines a 3D grooved border (effect depends on the border-color value) | | `ridge` | Defines a 3D ridged border (effect depends on the border-color value) | | `inset` | Defines a 3D inset border (effect depends on the border-color value) | | `outset` | Defines a 3D outset border (effect depends on the border-color value) | | `none` | Defines no border | | `hidden` | Defines a hidden border | The `border-style` property can have from one to four values (for the top border, right border, bottom border, and the left border). [S1] **Example** β€” demonstrating all of the border-style values, including a `mix` class that supplies four values: [S1] ```css p.dotted {border-style: dotted;} p.dashed {border-style: dashed;} p.solid {border-style: solid;} p.double {border-style: double;} p.groove {border-style: groove;} p.ridge {border-style: ridge;} p.inset {border-style: inset;} p.outset {border-style: outset;} p.none {border-style: none;} p.hidden {border-style: hidden;} p.mix {border-style: dotted dashed solid double;} ``` **Note:** None of the OTHER CSS border properties (which you will learn more about in the next chapters) will have ANY effect unless the `border-style` property is set! [S1] ## πŸ› οΈ 적용 사둀 (Applied in summary) The example stylesheet above is the page's own applied example: a set of paragraph classes each demonstrating one `border-style` value, plus a `mix` class applying four values at once. No external project/commit applications found in the source. ## πŸ’» μ½”λ“œ νŒ¨ν„΄ (Code patterns) Single value applied to all four sides (language: CSS): ```css p.solid {border-style: solid;} ``` Four values, one per side (top, right, bottom, left): ```css p.mix {border-style: dotted dashed solid double;} ``` ## βš–οΈ λͺ¨μˆœ 및 μ—…λ°μ΄νŠΈ (Contradictions & updates) No contradictions found in the source. ## βœ… 검증 μƒνƒœ 및 신뒰도 - **μƒνƒœ:** draft - **검증 단계:** conceptual (μ‹€μ œ 적용 사둀 발견 μ‹œ applied/validated둜 승격 κ°€λŠ₯) - **좜처 신뒰도:** B (W3Schools β€” widely used educational reference, not a primary standards body) - **μ‹ λ’° 점수:** 0.90 - **쀑볡 검사 κ²°κ³Ό:** μ‹ κ·œ 생성 (New discovery) ## πŸ”— 지식 κ·Έλž˜ν”„ (Knowledge Graph) - **μƒμœ„/루트:** [[CSS Tutorial]] - **κ΄€λ ¨ κ°œλ…:** [[CSS Border Width]], [[CSS Border Color]], [[CSS Border Sides]], [[CSS Border Shorthand]] - **μ°Έμ‘° λ§₯락:** The mandatory first step for any element border; referenced whenever width or color is applied. ## πŸ“š 좜처 (Sources) - [S1] W3Schools β€” CSS Border Style β€” https://www.w3schools.com/css/css_border.asp ## πŸ“ λ³€κ²½ 이λ ₯ (Change history) - 2026-06-23: Initial draft synthesized from the W3Schools "CSS Border Style" page (Astra wiki-curation, P-Reinforce v3.1 format).