1cfd3bbb56
Topic_CSS/Topic_HTML/Topic_JavaScript/Topic_Prompt/Topic_Comfyui 등 기존 카테고리 폴더를 정리하고, Topic_Graphic/Dev 등 신규 산출물과 Topics 내부 세션/메모리 기록을 동기화.
71 lines
3.4 KiB
Markdown
71 lines
3.4 KiB
Markdown
---
|
|
id: w3css-cards
|
|
title: "W3CSS Cards"
|
|
category: "Programming_Language"
|
|
status: "draft"
|
|
verification_status: "conceptual"
|
|
canonical_id: ""
|
|
aliases: ["w3-card", "W3.CSS 카드"]
|
|
duplicate_of: ""
|
|
source_trust_level: "B"
|
|
confidence_score: 0.89
|
|
created_at: 2026-07-04
|
|
updated_at: 2026-07-04
|
|
review_reason: ""
|
|
merge_history: []
|
|
tags: ["w3css", "css-framework", "w3schools", "cards"]
|
|
raw_sources: ["https://www.w3schools.com/w3css/w3css_cards.asp"]
|
|
applied_in: []
|
|
github_commit: ""
|
|
---
|
|
|
|
# [[W3CSS Cards]]
|
|
|
|
## 🎯 한 줄 통찰 (One-line insight)
|
|
`w3-hover-shadow` can turn ANY plain element into something that behaves like a card purely on mouse-over — the source notes it uses "the same style as w3-card-4," meaning you can defer the card-like shadow effect to a hover interaction instead of applying it permanently, without needing a separate shadow value. [S1]
|
|
|
|
## 🧠 핵심 개념 (Core concepts)
|
|
- **`w3-card`** — alias for `w3-card-2` (2px bordered shadow). [S1]
|
|
- **`w3-card-2` / `w3-card-4`** — containers with 2px/4px shadow depth respectively. [S1]
|
|
- **Composable with headers/footers** — a card can contain its own `<header>`/`<footer>` with `w3-container`, creating distinct sections inside one card. [S1]
|
|
- **`w3-hover-shadow`** — adds the card-4 shadow effect only on hover, making any plain element look card-like on mouse-over. [S1]
|
|
- **Photo cards** — an `<img>` combined with a `w3-container` caption div inside a `w3-card-4` wrapper. [S1]
|
|
|
|
## 📖 세부 내용 (Details)
|
|
- Basic card: `<div class="w3-card"><p>w3-card</p></div>`. [S1]
|
|
- Sectioned card with header/footer: `<div class="w3-card-4"><header class="w3-container w3-blue"><h1>Header</h1></header><div class="w3-container"><p>Lorem ipsum...</p></div><footer class="w3-container w3-blue"><h5>Footer</h5></footer></div>`. [S1]
|
|
- Photo card: `<div class="w3-card-4"><img src="img_snowtops.jpg" alt="Alps"><div class="w3-container w3-center"><p>The Italian / Austrian Alps</p></div></div>`. [S1]
|
|
- Hover-only shadow: `<div class="w3-green w3-hover-shadow w3-center"><p>Hover over me!</p></div>`. [S1]
|
|
|
|
## ⚖️ 모순 및 업데이트 (Contradictions & updates)
|
|
소스에서 모순되는 정보는 발견되지 않음.
|
|
|
|
## 🛠️ 적용 사례 (Applied in summary)
|
|
현재 발견된 실제 적용 사례가 없습니다 — 친구 요청 카드, 날씨 위젯 카드 등 header+container+footer 조합으로 구성된 복합 카드가 실전 UI 패턴의 대표 사례다. [S1]
|
|
|
|
## 💻 코드 패턴 (Code patterns)
|
|
Card-like shadow only on hover (HTML):
|
|
```html
|
|
<div class="w3-green w3-hover-shadow w3-center">
|
|
<p>Hover over me!</p>
|
|
</div>
|
|
```
|
|
|
|
## ✅ 검증 상태 및 신뢰도
|
|
- **상태:** draft
|
|
- **검증 단계:** conceptual
|
|
- **출처 신뢰도:** B (W3Schools — widely used educational reference, not a primary standards body)
|
|
- **신뢰 점수:** 0.89
|
|
- **중복 검사 결과:** 신규 생성 (New discovery)
|
|
|
|
## 🔗 지식 그래프 (Knowledge Graph)
|
|
- **상위/루트:** [[W3.CSS Tutorial]]
|
|
- **관련 개념:** [[W3CSS Borders]], [[W3CSS Defaults]], [[W3CSS Images]]
|
|
- **참조 맥락:** Basics 섹션의 마지막 — 기본 설정(Defaults) 챕터로 이어짐.
|
|
|
|
## 📚 출처 (Sources)
|
|
- [S1] W3Schools — W3.CSS Cards — https://www.w3schools.com/w3css/w3css_cards.asp
|
|
|
|
## 📝 변경 이력 (Change history)
|
|
- 2026-07-04: Initial draft synthesized from the W3Schools "W3.CSS Cards" page (Astra wiki-curation, P-Reinforce v3.1 format).
|