--- id: css-text-shadow-effects title: "CSS Text Shadow Effects" category: "Frontend" status: "draft" verification_status: "conceptual" canonical_id: "" aliases: ["text-shadow", "CSS text shadow", "text glow CSS", "neon text CSS", "text outline shadow"] 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", "text-shadow", "shadows", "typography"] raw_sources: ["https://www.w3schools.com/css/css3_shadows.asp"] applied_in: [] github_commit: "" --- # [[CSS Text Shadow Effects]] ## 🎯 ν•œ 쀄 톡찰 (One-line insight) The `text-shadow` property adds shadow to text using horizontal and vertical offsets (with optional blur and color), and multiple comma-separated shadows can be layered to build glow, neon, and text-outline effects. [S1] ## 🧠 핡심 κ°œλ… (Core concepts) - **`text-shadow` adds shadow to text** β€” the property applies a shadow to the text it styles. [S1] - **Minimum form = two offsets** β€” in its simplest use you specify only the horizontal and vertical shadow offsets. [S1] - **Optional blur and color** β€” you can add a blur radius and a color to the shadow. [S1] - **Multiple shadows** β€” you can layer more than one shadow by separating them with commas, enabling glow and outline effects. [S1] - **Related to `box-shadow`** β€” the page links onward to `box-shadow`, which applies shadow to elements (boxes) rather than text. [S1] ## 🧩 μΆ”μΆœλœ νŒ¨ν„΄ (Extracted patterns) - **Offset-only pattern** β€” `text-shadow: ;`. [S1] - **Offset + color pattern** β€” append a color: `text-shadow: 2px 2px red;`. [S1] - **Offset + blur + color pattern** β€” `text-shadow: 2px 2px 5px red;`. [S1] - **Neon glow pattern** β€” zero offsets with blur: `text-shadow: 0 0 3px #ff0000;`, stackable for multi-color glow. [S1] - **Text-border pattern** β€” four shadows offset in each direction to outline the text. [S1] ## πŸ“– μ„ΈλΆ€ λ‚΄μš© (Details) **Basic text-shadow (horizontal and vertical offset)** [S1] The simplest use specifies the horizontal shadow (2px) and the vertical shadow (2px): ```css h1 { text-shadow: 2px 2px; } ``` **Add a color to the shadow** [S1] ```css h1 { text-shadow: 2px 2px red; } ``` **Add a blur effect to the shadow** [S1] ```css h1 { text-shadow: 2px 2px 5px red; } ``` **White text with a black shadow** [S1] ```css h1 { color: white; text-shadow: 2px 2px 4px #000000; } ``` **Red neon glow effect** [S1] ```css h1 { text-shadow: 0 0 3px #ff0000; } ``` **Red and blue neon glow effect (multiple shadows)** [S1] To add more than one shadow to the text, add a comma-separated list of shadows: ```css h1 { text-shadow: 0 0 3px #ff0000, 0 0 5px #0000ff; } ``` **Border around text using four shadows** [S1] ```css h1 { color: coral; text-shadow: -1px 0 black, 0 1px black, 1px 0 black, 0 -1px black; } ``` **Note** [S1] The page introduces `box-shadow` as a related property covered on the next page (Box Shadow), which adds shadow to elements rather than text. ## πŸ› οΈ 적용 사둀 (Applied in summary) The page's own demonstrations (`h1` elements showing offset-only, colored, blurred, white-on-black, neon glow, and text-border shadows) serve as the applied examples. No external project/commit applications found in the source. ## πŸ’» μ½”λ“œ νŒ¨ν„΄ (Code patterns) Simple text shadow (language: CSS): ```css h1 { text-shadow: 2px 2px 5px red; } ``` Neon glow (stacked shadows): ```css h1 { text-shadow: 0 0 3px #ff0000, 0 0 5px #0000ff; } ``` Text outline via four shadows: ```css h1 { color: coral; text-shadow: -1px 0 black, 0 1px black, 1px 0 black, 0 -1px black; } ``` ## βš–οΈ 비ꡐ 및 선택 κΈ°μ€€ (Comparison & decision criteria) - **`text-shadow` vs `box-shadow`** β€” `text-shadow` shadows the glyphs of text; `box-shadow` (the next page) shadows the element box. Choose by what you want shadowed. [S1] - **Single vs multiple shadows** β€” one shadow gives a simple drop effect; comma-separated multiple shadows enable neon glow and full text outlines. [S1] ## βš–οΈ λͺ¨μˆœ 및 μ—…λ°μ΄νŠΈ (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 Box Shadow]], [[CSS Text Effects]], [[CSS Linear Gradients]] - **μ°Έμ‘° λ§₯락:** Referenced when adding depth, glow, or outline to text headings and labels. ## πŸ“š 좜처 (Sources) - [S1] W3Schools β€” CSS Text Shadow Effects β€” https://www.w3schools.com/css/css3_shadows.asp ## πŸ“ λ³€κ²½ 이λ ₯ (Change history) - 2026-06-23: Initial draft synthesized from the W3Schools "CSS Text Shadow Effects" page (Astra wiki-curation, P-Reinforce v3.1 format).