--- id: css-text-shadow title: "CSS Text Shadow" category: "Frontend" status: "draft" verification_status: "conceptual" canonical_id: "" aliases: ["text-shadow", "CSS text shadow", "text shadow effect", "neon text CSS", "text glow"] 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", "text-shadow", "typography"] raw_sources: ["https://www.w3schools.com/css/css_text_shadow.asp"] applied_in: [] github_commit: "" --- # [[CSS Text Shadow]] ## 🎯 ν•œ 쀄 톡찰 (One-line insight) The `text-shadow` property adds shadow effects to text, taking horizontal and vertical offsets with optional blur radius and color, and supports comma-separated multiple shadows for neon-style glows. [S1] ## 🧠 핡심 κ°œλ… (Core concepts) - **`text-shadow` property** β€” adds shadow effects to text. [S1] - **Basic syntax** β€” requires a horizontal offset and a vertical offset value. [S1] - **Optional parameters** β€” a color and a blur radius can be added to the shadow. [S1] - **Multiple shadows** β€” several shadows can be applied to the same text by separating them with commas. [S1] ## 🧩 μΆ”μΆœλœ νŒ¨ν„΄ (Extracted patterns) - **Offset-only shadow** β€” `text-shadow: 2px 2px;` sets only the horizontal and vertical offset. [S1] - **Colored shadow** β€” append a color: `text-shadow: 2px 2px red;`. [S1] - **Blurred shadow** β€” add a blur value before the color: `text-shadow: 2px 2px 5px red;`. [S1] - **Neon glow** β€” zero offset with blur produces a glow: `text-shadow: 0 0 3px #ff0000;`. [S1] - **Layered glow** β€” comma-chain several shadows to build multi-color neon effects. [S1] ## πŸ“– μ„ΈλΆ€ λ‚΄μš© (Details) The `text-shadow` property specifies the shadow effect added to text. The basic syntax requires horizontal and vertical offset values, with optional color and blur parameters. [S1] **Basic shadow** β€” horizontal and vertical offset only: [S1] ```css h1 { text-shadow: 2px 2px; } ``` **With color** β€” adding a color to the shadow: [S1] ```css h1 { text-shadow: 2px 2px red; } ``` **With blur effect** β€” adding a blur radius before the color: [S1] ```css h1 { text-shadow: 2px 2px 5px red; } ``` **White text with a dark shadow:** [S1] ```css h1 { color: white; text-shadow: 2px 2px 4px #000000; } ``` **Red neon glow** β€” zero offset with a small blur: [S1] ```css h1 { text-shadow: 0 0 3px #ff0000; } ``` **Multiple shadows (red and blue neon)** β€” comma-separated shadow list: [S1] ```css h1 { text-shadow: 0 0 3px #ff0000, 0 0 5px #0000ff; } ``` **Multiple color neon glow:** [S1] ```css h1 { color: white; text-shadow: 1px 1px 2px black, 0 0 25px blue, 0 0 5px red; } ``` **Property reference** [S1] | Property | Description | |----------|-------------| | `text-shadow` | Specifies the shadow effect added to text | ## πŸ› οΈ 적용 사둀 (Applied in summary) The page's own examples demonstrate the property applied to `h1` elements β€” from a plain offset shadow to layered neon glows combining multiple comma-separated shadows. No external project/commit applications found in the source. ## πŸ’» μ½”λ“œ νŒ¨ν„΄ (Code patterns) General `text-shadow` form (language: CSS): ```css selector { text-shadow: h-offset v-offset blur color; } ``` Concrete neon example: ```css h1 { color: white; text-shadow: 1px 1px 2px black, 0 0 25px blue, 0 0 5px red; } ``` ## βš–οΈ λͺ¨μˆœ 및 μ—…λ°μ΄νŠΈ (Contradictions & updates) No contradictions found in the source. ## βœ… 검증 μƒνƒœ 및 신뒰도 - **μƒνƒœ:** draft - **검증 단계:** conceptual (μ‹€μ œ 적용 사둀 발견 μ‹œ applied/validated둜 승격 κ°€λŠ₯) - **좜처 신뒰도:** B (W3Schools β€” widely used educational reference, not a primary standards body) - **μ‹ λ’° 점수:** 0.89 - **쀑볡 검사 κ²°κ³Ό:** μ‹ κ·œ 생성 (New discovery) ## πŸ”— 지식 κ·Έλž˜ν”„ (Knowledge Graph) - **μƒμœ„/루트:** [[CSS Tutorial]] - **κ΄€λ ¨ κ°œλ…:** [[CSS Text]], [[CSS Fonts]], [[CSS Color]] - **μ°Έμ‘° λ§₯락:** Referenced when adding depth, emphasis, or neon/glow effects to headings and display text. ## πŸ“š 좜처 (Sources) - [S1] W3Schools β€” CSS Text Shadow β€” https://www.w3schools.com/css/css_text_shadow.asp ## πŸ“ λ³€κ²½ 이λ ₯ (Change history) - 2026-06-23: Initial draft synthesized from the W3Schools "CSS Text Shadow" page (Astra wiki-curation, P-Reinforce v3.1 format).