--- id: howto-css-center-button title: "How To - Center a Button in DIV" category: "Web_Recipes" status: "draft" verification_status: "conceptual" canonical_id: "" aliases: ["center button CSS"] 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", "layout", "centering", "buttons"] raw_sources: ["https://www.w3schools.com/howto/howto_css_center_button.asp"] applied_in: [] github_commit: "" --- # [[HOWTO CSS Center Button]] ## 🎯 ν•œ 쀄 톡찰 (One-line insight) This recipe is the EXACT SAME three techniques as `[[HOWTO CSS Center Vertical]]` (absolute+translateY, absolute+translate both axes, flexbox), just applied to a `` as the child instead of a `

`. [S1] ## βš–οΈ λͺ¨μˆœ 및 μ—…λ°μ΄νŠΈ (Contradictions & updates) - **일반 쀑앙 μ •λ ¬ λ ˆμ‹œν”Όμ™€ μ™„μ „νžˆ λ™μΌν•œ 기법**: `[[HOWTO CSS Center Vertical]]`μ—μ„œ μ‚¬μš©λœ μ„Έ κ°€μ§€ 기법(absolute+translateY, absolute+translate μ–‘μΆ•, flexbox)이 λŒ€μƒ μš”μ†Œλ§Œ ν…μŠ€νŠΈμ—μ„œ λ²„νŠΌμœΌλ‘œ 바뀐 채 κ·ΈλŒ€λ‘œ μž¬μ‚¬μš©λœλ‹€λŠ” 점이 확인됨 β€” 쀑앙 μ •λ ¬ 기법이 μžμ‹ μš”μ†Œμ˜ μ’…λ₯˜μ™€ λ¬΄κ΄€ν•˜κ²Œ λ™μž‘ν•¨μ„ λ³΄μ—¬μ€Œ. [S1] ## πŸ› οΈ 적용 사둀 (Applied in summary) "Centered Button"μ΄λΌλŠ” λ²„νŠΌμ„ μ»¨ν…Œμ΄λ„ˆ μ•ˆμ—μ„œ μ„Έλ‘œλ§Œ, λ˜λŠ” μ„Έλ‘œ+κ°€λ‘œ λͺ¨λ‘ 쀑앙 μ •λ ¬ν•˜λŠ” μ˜ˆμ œκ°€ μ›λ¬Έμ—μ„œ μ œμ‹œλ¨. [S1] ## πŸ’» μ½”λ“œ νŒ¨ν„΄ (Code patterns) Centering a button β€” identical technique to centering any element (CSS): ```css .container { height: 200px; position: relative; } .center { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); } ``` ```html

``` ## βœ… 검증 μƒνƒœ 및 신뒰도 - **μƒνƒœ:** draft - **검증 단계:** conceptual - **좜처 신뒰도:** B (W3Schools β€” widely used educational reference) - **μ‹ λ’° 점수:** 0.80 - **쀑볡 검사 κ²°κ³Ό:** [[HOWTO CSS Center Vertical]]κ³Ό 기법 쀑볡 확인 β€” 별도 λ¬Έμ„œλ‘œ μœ μ§€(λŒ€μƒ μš”μ†Œκ°€ λ‹€λ₯Έ λ³„κ°œ λ ˆμ‹œν”Ό νŽ˜μ΄μ§€). ## πŸ”— 지식 κ·Έλž˜ν”„ (Knowledge Graph) - **μƒμœ„/루트:** [[W3Schools HOW TO]] - **κ΄€λ ¨ κ°œλ…:** [[HOWTO CSS Center Vertical]], [[HOWTO CSS Center Website]] - **μ°Έμ‘° λ§₯락:** CSS Layout & Positioning μ„Ήμ…˜. ## πŸ“š 좜처 (Sources) - [S1] W3Schools β€” How To - Center a Button in DIV β€” https://www.w3schools.com/howto/howto_css_center_button.asp ## πŸ“ λ³€κ²½ 이λ ₯ (Change history) - 2026-07-04: Initial draft synthesized from the W3Schools "How To - Center a Button in DIV" recipe (Astra wiki-curation, P-Reinforce v3.1 format).