Files
2nd/10_Wiki/Topic_Programming/Topic_CSS/CSS_Link_Buttons.md
T
Antigravity Agent e9cbf23ab5 docs(10_Wiki): Dev 폴더 누락분 반영 — Topic_Programming으로 통합
이전 재구성 작업에서 Dev/ 폴더가 누락되었던 것을 반영.

- Dev/Topic_Programming(중첩 폴더, 78개)은 Dev 자체 최상위 폴더들
  (Architecture/Conventions/Engineering_Intelligence 등)과 완전 중복이라 제거.
- Dev 최상위 엔지니어링 지식 폴더(Architecture/Conventions/Engineering_Intelligence/
  Failure_Library/Generalized_Principles/Language/Pattern_Catalog/Platform_Guides/
  Subsystems, 77개)는 이미 Topic_Programming/Topic_Programming에 더 최신 버전이
  존재해 중복 제거(고유 콘텐츠 1개는 예외 처리하여 이동 보존).
- Dev의 W3Schools 언어 튜토리얼 폴더(Topic_C/CPP/CSS/CSharp/HOWTO/HTML/Java/
  JavaScript/PHP/Python/SQL/W3CSS, 1201개)는 전부 Topic_Programming 하위로 이동.
- 에이전트 운영 상태(.astra/docs)는 그대로 유지, 콘텐츠 폴더만 정리.
- Topic_Programming 최종 문서 수: 2784 → 3985.
2026-07-05 00:39:13 +09:00

4.7 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
css-link-buttons CSS Link Buttons Frontend draft conceptual
link buttons
button links
CSS buttons
styled links as buttons
inline-block links
B 0.88 2026-06-23 2026-06-23
css
web
frontend
w3schools
links
buttons
https://www.w3schools.com/css/css_link_buttons.asp

CSS Link Buttons

🎯 한 줄 통찰 (One-line insight)

By combining several CSS properties — background color, padding, text alignment, removed underline, and display: inline-block — ordinary HTML links can be displayed as boxes or buttons that respond to hover. [S1]

🧠 핵심 개념 (Core concepts)

  • Links as buttons — this is a demonstration of combining several CSS properties to display links as boxes/buttons. [S1]
  • Box model on linkspadding, display: inline-block, and background-color turn an inline link into a button-like box. [S1]
  • Hover feedback — the :hover/:active states change the background (and optionally text) color for interactivity. [S1]

🧩 추출된 패턴 (Extracted patterns)

  • Filled button pattern — solid background color with white text, padding, no underline, inline-block; darken background on hover. [S1]
  • Outlined button pattern — white background with a colored border that inverts (fills) on hover. [S1]

📖 세부 내용 (Details)

This page demonstrates combining several CSS properties to display links as boxes/buttons. [S1]

Example 1 — filled (red) button: [S1]

a:link, a:visited {
  background-color: #f44336;
  color: white;
  padding: 14px 25px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
}

a:hover, a:active {
  background-color: red;
}

Example 2 — outlined (green) button: [S1]

a:link, a:visited {
  background-color: white;
  color: black;
  border: 2px solid green;
  padding: 10px 20px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
}

a:hover, a:active {
  background-color: green;
  color: white;
}

In both examples, the :link and :visited states define the default button appearance, while :hover and :active change the colors to give a clickable feel. The key properties are background-color, color, padding, text-align, text-decoration: none, display: inline-block, and (for example 2) border. [S1]

🛠️ 적용 사례 (Applied in summary)

The page's two examples apply the patterns to anchor elements: a filled red button and an outlined green button that inverts on hover. No external project/commit applications found in the source.

💻 코드 패턴 (Code patterns)

Filled link button (language: CSS):

a:link, a:visited {
  background-color: #f44336;
  color: white;
  padding: 14px 25px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
}
a:hover, a:active {
  background-color: red;
}

⚖️ 비교 및 선택 기준 (Comparison & decision criteria)

The page presents two button styles. The filled button (Example 1) uses a solid background-color with white text and darkens on hover — suited to primary call-to-action emphasis. The outlined button (Example 2) uses a white background with a 2px solid green border and inverts to a filled green button on hover — a lighter-weight look for secondary actions. Both rely on the same box-model foundation (padding, text-decoration: none, display: inline-block); the choice is purely the default visual weight desired. [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.88
  • 중복 검사 결과: 신규 생성 (New discovery)

🔗 지식 그래프 (Knowledge Graph)

📚 출처 (Sources)

📝 변경 이력 (Change history)

  • 2026-06-23: Initial draft synthesized from the W3Schools "CSS Link Buttons" page (Astra wiki-curation, P-Reinforce v3.1 format).