Files
2nd/10_Wiki/Topic_CSS/CSS_Buttons.md
T
koriweb 9609c04755 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>
2026-06-23 19:21:18 +09:00

5.5 KiB
Raw Blame History

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-styling-buttons CSS Styling Buttons Frontend draft conceptual
CSS buttons
button styling
styled button
button class
rounded buttons
button borders
B 0.88 2026-06-23 2026-06-23
css
web
frontend
w3schools
buttons
styling
ui
https://www.w3schools.com/css/css3_buttons.asp

CSS Styling Buttons

🎯 한 줄 통찰 (One-line insight)

Buttons can be created from <button>, <input type="button">, or styled <a> elements, and CSS properties like background-color, padding, border-radius, and border give them their visual style. [S1]

🧠 핵심 개념 (Core concepts)

  • Multiple sources — buttons can be created using <button>, <input type="button">, or styled <a> elements. [S1]
  • Core styling propertiesbackground-color, color, border, padding, border-radius, text-align, font-size, text-decoration, and cursor. [S1]
  • Color variety — different background-color values (green, blue, red, gray, black) distinguish button purposes. [S1]
  • Sizingfont-size adjusts text size; padding controls spacing around the text. [S1]
  • Roundingborder-radius rounds corners, up to 50% for a circular effect. [S1]
  • Bordersborder can be solid, dotted, or dashed in various colors. [S1]

🧩 추출된 패턴 (Extracted patterns)

  • Base button class — define a .button class with background, no border, white text, padding, centered text, no underline, inline-block display, font size, and a pointer cursor. [S1]
  • Variant classes — layer numbered classes (.button1.button5) over the base to vary color, size, rounding, or border. [S1]

📖 세부 내용 (Details)

Basic button styling — a basic button styling for different HTML elements. [S1]

.button {
  background-color: red;
  border: none;
  color: white;
  padding: 15px 32px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  cursor: pointer;
}

Button colors — buttons with different colors. [S1]

.button1 {background-color: #04AA6D;} /* Green */
.button2 {background-color: #008CBA;} /* Blue */
.button3 {background-color: #f44336;} /* Red */
.button4 {background-color: #e7e7e7; color: black;} /* Gray */
.button5 {background-color: #555555;} /* Black */

Button sizes — buttons with different font size. [S1]

.button1 {font-size: 10px;}
.button2 {font-size: 12px;}
.button3 {font-size: 16px;}
.button4 {font-size: 20px;}
.button5 {font-size: 24px;}

Rounded buttonsborder-radius adds rounded corners, up to 50%. [S1]

.button1 {border-radius: 2px;}
.button2 {border-radius: 4px;}
.button3 {border-radius: 8px;}
.button4 {border-radius: 12px;}
.button5 {border-radius: 50%;}

Colored button borders — borders can be solid, dotted, or dashed in various colors. (Per the source, only the border property is specified for each class; no background-color/color in these particular examples.) [S1]

.button1 {border: 2px solid #04AA6D;}
.button2 {border: 2px dotted #008CBA;}
.button3 {border: 2px dashed #f44336;}
.button4 {border: 1px solid #e7e7e7;}
.button5 {border: 1px solid #555555;}

Note on further sections — The W3Schools page also references additional button sections (e.g. hoverable buttons, button shadow, disabled buttons, button width, button groups, animated buttons). The verbatim code for those sections was not captured from this source on this fetch; for hoverable/shadow/disabled/width specifics see CSS Button Hover Effects. Other section code: Not found in source (for this page).

🛠️ 적용 사례 (Applied in summary)

The page's own examples are the applied cases: a .button base style plus .button1.button5 variants for color, font size, rounding, and border style. No external project/commit applications found in the source.

💻 코드 패턴 (Code patterns)

Base reusable button class (language: CSS):

.button {
  background-color: red;
  border: none;
  color: white;
  padding: 15px 32px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  cursor: pointer;
}

Rounded / pill / circular variants (language: CSS):

.button4 {border-radius: 12px;}
.button5 {border-radius: 50%;}

⚖️ 모순 및 업데이트 (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 Styling Buttons" page (Astra wiki-curation, P-Reinforce v3.1 format).