docs(10_Wiki): W3Schools 위키화 — HTML/CSS/JavaScript(core)
W3Schools 튜토리얼을 P-Reinforce v3.1 포맷으로 위키화(영어 본문, 한/영 섹션 헤더). - Topic_HTML: 59문서 (튜토리얼+예제, 레퍼런스/메타 제외) - Topic_CSS: 190문서 (메인 + Advanced/Flexbox/Grid/RWD 전체) - Topic_JavaScript: 120문서 (코어 언어; Temporal/DOM상세/BOM/WebAPI/AJAX/jQuery/Graphics 등은 후속) 각 폴더 00_INDEX.md(MOC) 포함. 코드 verbatim, 미확인분은 "Not found in source" 표기. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,145 @@
|
||||
---
|
||||
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: <h-offset> <v-offset>;`. [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).
|
||||
Reference in New Issue
Block a user