1cfd3bbb56
Topic_CSS/Topic_HTML/Topic_JavaScript/Topic_Prompt/Topic_Comfyui 등 기존 카테고리 폴더를 정리하고, Topic_Graphic/Dev 등 신규 산출물과 Topics 내부 세션/메모리 기록을 동기화.
3.4 KiB
3.4 KiB
id, title, category, status, verification_status, canonical_id, aliases, duplicate_of, source_trust_level, confidence_score, created_at, updated_at, review_reason, merge_history, tags, raw_sources, applied_in, github_commit
| id | title | category | status | verification_status | canonical_id | aliases | duplicate_of | source_trust_level | confidence_score | created_at | updated_at | review_reason | merge_history | tags | raw_sources | applied_in | github_commit | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| w3css-badges | W3CSS Badges | Programming_Language | draft | conceptual |
|
B | 0.87 | 2026-07-04 | 2026-07-04 |
|
|
W3CSS Badges
🎯 한 줄 통찰 (One-line insight)
W3.CSS provides exactly ONE badge class (w3-badge, circular black by default) and achieves every visual variation — colored, sized, positioned inside buttons/lists/tables — purely through combination with OTHER existing classes (w3-color, w3-size, w3-right, w3-margin-*), rather than offering dozens of badge-specific variants. [S1]
🧠 핵심 개념 (Core concepts)
w3-badge— the ONLY badge class; circular, black by default. [S1]- Color via composition —
w3-badge w3-green,w3-badge w3-red, etc. [S1] - Size inheritance — a badge inherits its container's font size by default;
w3-sizeclasses override it. [S1] - Right-aligned list badges —
w3-right(float) +w3-margin-rightpositions a badge at the end of a list item. [S1] - UTF-8 Dingbat alternative — single-digit circled numerals (❶❷❸...➉) via Unicode escapes as a badge-free alternative for simple counters. [S1]
📖 세부 내용 (Details)
- Basic badge:
<p>Updates <span class="w3-badge">9</span></p>. [S1] - Colored:
<p>News <span class="w3-badge w3-green">6</span></p>. [S1] - In a button:
<button class="w3-btn w3-black">Button <span class="w3-badge w3-margin-left w3-white">1</span></button>. [S1] - Right-aligned in a list:
<li>Jill <span class="w3-badge w3-right w3-margin-right">1</span></li>. [S1] - UTF-8 dingbat numerals:
❶ ❷ ❸(❶ ❷ ❸) inside aw3-xxlargediv. [S1]
⚖️ 모순 및 업데이트 (Contradictions & updates)
소스에서 모순되는 정보는 발견되지 않음.
🛠️ 적용 사례 (Applied in summary)
현재 발견된 실제 적용 사례가 없습니다 — 리스트 항목 끝에 우측 정렬된 배지를 붙이는 것이 카운터/알림 표시의 대표 실전 사례다. [S1]
💻 코드 패턴 (Code patterns)
Right-aligned badge in a list item (HTML):
<ul class="w3-ul w3-border">
<li>Jill <span class="w3-badge w3-right w3-margin-right">1</span></li>
<li>Eve <span class="w3-badge w3-right w3-margin-right">2</span></li>
</ul>
✅ 검증 상태 및 신뢰도
- 상태: draft
- 검증 단계: conceptual
- 출처 신뢰도: B (W3Schools — widely used educational reference, not a primary standards body)
- 신뢰 점수: 0.87
- 중복 검사 결과: 신규 생성 (New discovery)
🔗 지식 그래프 (Knowledge Graph)
- 상위/루트: W3.CSS Tutorial
- 관련 개념: W3CSS Input, W3CSS Tags, W3CSS Lists
- 참조 맥락: 하나의 클래스를 다른 클래스와 조합하는 설계 원칙 — 태그(Tags) 챕터로 이어짐.
📚 출처 (Sources)
- [S1] W3Schools — W3.CSS Badges — https://www.w3schools.com/w3css/w3css_badges.asp
📝 변경 이력 (Change history)
- 2026-07-04: Initial draft synthesized from the W3Schools "W3.CSS Badges" page (Astra wiki-curation, P-Reinforce v3.1 format).