--- id: howto-css-round-buttons title: "How To - Round Buttons" category: "Web_Recipes" status: "draft" verification_status: "conceptual" canonical_id: "" aliases: ["circle button CSS", "border-radius spectrum"] duplicate_of: "" source_trust_level: "B" confidence_score: 0.8 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_round_buttons.asp"] applied_in: [] github_commit: "" --- # [[HOWTO CSS Round Buttons]] ## ๐ŸŽฏ ํ•œ ์ค„ ํ†ต์ฐฐ (One-line insight) This recipe demonstrates the FULL `border-radius` spectrum in one place โ€” five buttons with identical base styling but five different radius values (2px, 4px, 8px, 12px, 50%) โ€” making explicit what `[[HOWTO CSS Pill Button]]` only implied: `border-radius` is a continuous dial from "barely rounded corners" to "fully circular," and pill/round buttons are just two named stops along that same dial rather than distinct techniques. [S1] ## ๐Ÿง  ํ•ต์‹ฌ ๊ฐœ๋… (Core concepts) - **Shared base class + radius-only modifiers** โ€” `.button` sets background/padding/color once; five `.buttonN` classes each differ ONLY in `border-radius` value. [S1] - **`border-radius: 50%`** โ€” the endpoint of the spectrum, producing a full circle (requires roughly equal width/height, which square padding here approximates). [S1] ## ๐Ÿ“– ์„ธ๋ถ€ ๋‚ด์šฉ (Details) - `.button { background-color: #04AA6D; border: none; color: white; padding: 20px; } .button1 {border-radius: 2px;} .button2 {border-radius: 4px;} .button3 {border-radius: 8px;} .button4 {border-radius: 12px;} .button5 {border-radius: 50%;}`. [S1] ## โš–๏ธ ๋ชจ์ˆœ ๋ฐ ์—…๋ฐ์ดํŠธ (Contradictions & updates) - **Pill Button๊ณผ ๋™์ผํ•œ ์†์„ฑ ์ŠคํŽ™ํŠธ๋Ÿผ์˜ ์‹œ๊ฐ์  ์ฆ๋ช…**: `[[HOWTO CSS Pill Button]]`์ด 16px ํ•˜๋‚˜์˜ ๊ฐ’๋งŒ ๋ณด์—ฌ์คฌ๋‹ค๋ฉด, ์ด ๋ ˆ์‹œํ”ผ๋Š” 2px๋ถ€ํ„ฐ 50%๊นŒ์ง€ ๋‹ค์„ฏ ๋‹จ๊ณ„๋ฅผ ๋‚˜๋ž€ํžˆ ๋ฐฐ์น˜ํ•ด border-radius๊ฐ€ ์—ฐ์†์ ์ธ ๊ฐ’์˜ ์ŠคํŽ™ํŠธ๋Ÿผ์ž„์„ ๋ช…์‹œ์ ์œผ๋กœ ๋ณด์—ฌ์ค€๋‹ค๋Š” ์ ์ด ํ™•์ธ๋จ. [S1] ## ๐Ÿ› ๏ธ ์ ์šฉ ์‚ฌ๋ก€ (Applied in summary) ๋™์ผํ•œ ๋ฒ„ํŠผ์— border-radius ๊ฐ’๋งŒ 2px/4px/8px/12px/50%๋กœ ๋ฐ”๊ฟ”๊ฐ€๋ฉฐ ๋‹ค์„ฏ ๊ฐ€์ง€ ๊ฒฐ๊ณผ๋ฅผ ๋‚˜๋ž€ํžˆ ๋น„๊ตํ•˜๋Š” ์˜ˆ์ œ๊ฐ€ ์›๋ฌธ์—์„œ ์ง์ ‘ ์ œ์‹œ๋จ. [S1] ## ๐Ÿ’ป ์ฝ”๋“œ ํŒจํ„ด (Code patterns) Border-radius spectrum from barely-rounded to fully circular (CSS): ```css .button { background-color: #04AA6D; border: none; color: white; padding: 20px; } .button1 { border-radius: 2px; } .button5 { border-radius: 50%; } /* fully circular */ ``` ## โœ… ๊ฒ€์ฆ ์ƒํƒœ ๋ฐ ์‹ ๋ขฐ๋„ - **์ƒํƒœ:** draft - **๊ฒ€์ฆ ๋‹จ๊ณ„:** conceptual - **์ถœ์ฒ˜ ์‹ ๋ขฐ๋„:** B (W3Schools โ€” widely used educational reference) - **์‹ ๋ขฐ ์ ์ˆ˜:** 0.80 - **์ค‘๋ณต ๊ฒ€์‚ฌ ๊ฒฐ๊ณผ:** ์‹ ๊ทœ ์ƒ์„ฑ (New discovery) ## ๐Ÿ”— ์ง€์‹ ๊ทธ๋ž˜ํ”„ (Knowledge Graph) - **์ƒ์œ„/๋ฃจํŠธ:** [[W3Schools HOW TO]] - **๊ด€๋ จ ๊ฐœ๋…:** [[HOWTO CSS Pill Button]], [[HOWTO CSS Notification Button]], [[HOWTO CSS Social Media Buttons]] - **์ฐธ์กฐ ๋งฅ๋ฝ:** CSS Buttons ์„น์…˜. ## ๐Ÿ“š ์ถœ์ฒ˜ (Sources) - [S1] W3Schools โ€” How To - Round Buttons โ€” https://www.w3schools.com/howto/howto_css_round_buttons.asp ## ๐Ÿ“ ๋ณ€๊ฒฝ ์ด๋ ฅ (Change history) - 2026-07-04: Initial draft synthesized from the W3Schools "How To - Round Buttons" recipe (Astra wiki-curation, P-Reinforce v3.1 format).