--- id: css-outline-style title: "CSS Outline Style" category: "Frontend" status: "draft" verification_status: "conceptual" canonical_id: "" aliases: ["outline-style", "CSS outline", "outline", "outline vs border", "outline-offset"] duplicate_of: "" source_trust_level: "B" confidence_score: 0.89 created_at: 2026-06-23 updated_at: 2026-06-23 review_reason: "" merge_history: [] tags: ["css", "web", "frontend", "w3schools", "outline", "outline-style"] raw_sources: ["https://www.w3schools.com/css/css_outline.asp"] applied_in: [] github_commit: "" --- # [[CSS Outline Style]] ## 🎯 ν•œ 쀄 톡찰 (One-line insight) An outline is a line drawn around an element, outside its borders, to make it "stand out" β€” and it is not part of the element's dimensions, so it never affects width or height. [S1] ## 🧠 핡심 κ°œλ… (Core concepts) - **Definition** β€” an outline is "a line that is drawn around elements, OUTSIDE the borders, to make the element 'stand out.'" [S1] - **Outside the border** β€” the outline is drawn outside the element's border and may overlap other content. [S1] - **No dimension impact** β€” "the outline is NOT a part of the element's dimensions; the element's total width and height is not affected by the width of the outline." [S1] - **`outline-style` gates everything** β€” "None of the other outline properties will have ANY effect unless the `outline-style` property is set!" [S1] ## 🧩 μΆ”μΆœλœ νŒ¨ν„΄ (Extracted patterns) - **Set style first** β€” always declare `outline-style` before relying on `outline-color`, `outline-width`, or `outline-offset`, which have no effect without it. [S1] - **Decorative vs. layout-neutral emphasis** β€” use an outline (rather than a border) to highlight an element without changing its box dimensions. [S1] ## πŸ“– μ„ΈλΆ€ λ‚΄μš© (Details) **What an outline is** An outline is a line that is drawn around elements, outside the borders, to make the element "stand out." The outline is drawn outside the element's border and may overlap other content. Importantly, the outline is NOT a part of the element's dimensions; the element's total width and height is not affected by the width of the outline. [S1] **CSS outline properties** The tutorial lists five outline properties: [S1] - `outline-style` β€” specifies the style of the outline - `outline-color` β€” specifies the color of the outline - `outline-width` β€” specifies the width of the outline - `outline-offset` β€” adds space between the outline and the element's edge/border - `outline` β€” a shorthand property **`outline-style` values** The `outline-style` property accepts ten possible values: `dotted`, `dashed`, `solid`, `double`, `groove`, `ridge`, `inset`, `outset`, `none`, and `hidden`. [S1] **Demo example** β€” applying each style to a paragraph class: [S1] ```css p.dotted {outline-style: dotted;} p.dashed {outline-style: dashed;} p.solid {outline-style: solid;} p.double {outline-style: double;} p.groove {outline-style: groove;} p.ridge {outline-style: ridge;} p.inset {outline-style: inset;} p.outset {outline-style: outset;} ``` **Critical note** "None of the other outline properties will have ANY effect unless the `outline-style` property is set!" [S1] ## πŸ› οΈ 적용 사둀 (Applied in summary) The paragraph-class demo above is the page's own applied example, rendering each `outline-style` value. No external project/commit applications found in the source. ## πŸ’» μ½”λ“œ νŒ¨ν„΄ (Code patterns) Apply a named outline style (language: CSS): ```css p.solid {outline-style: solid;} ``` ## βš–οΈ λͺ¨μˆœ 및 μ—…λ°μ΄νŠΈ (Contradictions & updates) No contradictions found in the source. ## βš–οΈ 비ꡐ 및 선택 κΈ°μ€€ (Comparison & decision criteria) - **Outline** β€” drawn outside the border, may overlap other content, and does NOT affect the element's total width/height. [S1] - **Border** β€” by contrast, the outline differs from a border in that the outline is layout-neutral (no dimension impact). Use an outline when emphasis must not change the box's footprint. [S1] ## βœ… 검증 μƒνƒœ 및 신뒰도 - **μƒνƒœ:** draft - **검증 단계:** conceptual (μ‹€μ œ 적용 사둀 발견 μ‹œ applied/validated둜 승격 κ°€λŠ₯) - **좜처 신뒰도:** B (W3Schools β€” widely used educational reference, not a primary standards body) - **μ‹ λ’° 점수:** 0.89 - **쀑볡 검사 κ²°κ³Ό:** μ‹ κ·œ 생성 (New discovery) ## πŸ”— 지식 κ·Έλž˜ν”„ (Knowledge Graph) - **μƒμœ„/루트:** [[CSS Tutorial]] - **κ΄€λ ¨ κ°œλ…:** [[CSS Outline Width]], [[CSS Outline Color]], [[CSS Box Model]] - **μ°Έμ‘° λ§₯락:** Referenced whenever an element must be visually emphasized without altering its dimensions. ## πŸ“š 좜처 (Sources) - [S1] W3Schools β€” CSS Outline Style β€” https://www.w3schools.com/css/css_outline.asp ## πŸ“ λ³€κ²½ 이λ ₯ (Change history) - 2026-06-23: Initial draft synthesized from the W3Schools "CSS Outline Style" page (Astra wiki-curation, P-Reinforce v3.1 format).