--- id: howto-css-pill-button title: "How To - Pill Buttons" category: "Web_Recipes" status: "draft" verification_status: "conceptual" canonical_id: "" aliases: ["rounded button CSS"] duplicate_of: "" source_trust_level: "B" confidence_score: 0.77 created_at: 2026-07-04 updated_at: 2026-07-04 review_reason: "" merge_history: [] tags: ["howto", "css", "w3schools", "buttons"] raw_sources: ["https://www.w3schools.com/howto/howto_css_pill_button.asp"] applied_in: [] github_commit: "" --- # [[HOWTO CSS Pill Button]] ## 🎯 ν•œ 쀄 톡찰 (One-line insight) A "pill" shape is simply `border-radius` set LARGER than half the button's own height β€” at `16px` against a button whose padding produces roughly that height, the corners round out so far that they meet, turning the rectangle's short ends into full semicircles, which is the exact same property (`border-radius`) that `[[HOWTO CSS Round Buttons]]` uses at `50%` to make a full circle β€” pill and circle buttons are two points on the SAME radius-value spectrum, not different techniques. [S1] ## 🧠 핡심 κ°œλ… (Core concepts) - **`border-radius: 16px`** β€” large enough relative to the button's height that the short ends become fully rounded semicircles, producing the "pill" look. [S1] ## πŸ“– μ„ΈλΆ€ λ‚΄μš© (Details) - `.button { background-color: #ddd; border: none; padding: 10px 20px; border-radius: 16px; }`. [S1] ## βš–οΈ λͺ¨μˆœ 및 μ—…λ°μ΄νŠΈ (Contradictions & updates) - **Round Buttons와 λ™μΌν•œ μ†μ„±μ˜ λ‹€λ₯Έ κ°’**: `[[HOWTO CSS Round Buttons]]`κ°€ `border-radius: 50%`둜 μ™„μ „ν•œ 원을 λ§Œλ“œλŠ” 것과 달리, 이 λ ˆμ‹œν”ΌλŠ” `16px`μ΄λΌλŠ” μ ˆλŒ“κ°’μœΌλ‘œ λ²„νŠΌ λ†’μ΄μ˜ 절반 이상을 μ±„μ›Œ μ•Œμ•½ λͺ¨μ–‘을 λ§Œλ“ λ‹€λŠ” 점이 확인됨 β€” 같은 μ†μ„±μ˜ μŠ€νŽ™νŠΈλŸΌ 상 λ‹€λ₯Έ 지점일 뿐, λ³„κ°œ 기법이 μ•„λ‹˜. [S1] ## πŸ› οΈ 적용 사둀 (Applied in summary) μ‚¬κ°ν˜• λ²„νŠΌκ³Ό μ•Œμ•½ λͺ¨μ–‘ λ²„νŠΌμ„ λ‚˜λž€νžˆ λΉ„κ΅ν•˜λŠ” μ˜ˆμ œκ°€ μ›λ¬Έμ—μ„œ 직접 μ œμ‹œλ¨. [S1] ## πŸ’» μ½”λ“œ νŒ¨ν„΄ (Code patterns) Pill-shaped button via a large border-radius (CSS): ```css .button { background-color: #ddd; border: none; padding: 10px 20px; border-radius: 16px; } ``` ## βœ… 검증 μƒνƒœ 및 신뒰도 - **μƒνƒœ:** draft - **검증 단계:** conceptual - **좜처 신뒰도:** B (W3Schools β€” widely used educational reference) - **μ‹ λ’° 점수:** 0.77 - **쀑볡 검사 κ²°κ³Ό:** μ‹ κ·œ 생성 (New discovery) ## πŸ”— 지식 κ·Έλž˜ν”„ (Knowledge Graph) - **μƒμœ„/루트:** [[W3Schools HOW TO]] - **κ΄€λ ¨ κ°œλ…:** [[HOWTO CSS Round Buttons]], [[HOWTO CSS Pill Nav]] - **μ°Έμ‘° λ§₯락:** CSS Buttons μ„Ήμ…˜. ## πŸ“š 좜처 (Sources) - [S1] W3Schools β€” How To - Pill Buttons β€” https://www.w3schools.com/howto/howto_css_pill_button.asp ## πŸ“ λ³€κ²½ 이λ ₯ (Change history) - 2026-07-04: Initial draft synthesized from the W3Schools "How To - Pill Buttons" recipe (Astra wiki-curation, P-Reinforce v3.1 format).