--- id: howto-css-download-button title: "How To - Download Button" category: "Web_Recipes" status: "draft" verification_status: "conceptual" canonical_id: "" aliases: ["download button with icon CSS"] duplicate_of: "" source_trust_level: "B" confidence_score: 0.78 created_at: 2026-07-04 updated_at: 2026-07-04 review_reason: "" merge_history: [] tags: ["howto", "css", "w3schools", "buttons", "icons"] raw_sources: ["https://www.w3schools.com/howto/howto_css_download_button.asp"] applied_in: [] github_commit: "" --- # [[HOWTO CSS Download Button]] ## 🎯 ν•œ 쀄 톡찰 (One-line insight) This recipe pairs Font Awesome's icon-font approach (`` placed directly inside the button, before the text) with the SAME inline `style="width:100%"` technique already used in `[[HOWTO CSS Button Group]]`'s justified variant to make a full-width option β€” icons-in-buttons and full-width buttons are treated as orthogonal, independently-combinable choices rather than separate recipes. [S1] ## 🧠 핡심 κ°œλ… (Core concepts) - **Icon-in-button pattern** β€” `` places the icon element directly before the button's text content, both inheriting the button's own font size/color. [S1] - **Auto vs. full width** β€” the same `.btn` class works for both; full width is achieved with an inline `style="width:100%"` rather than a separate CSS class. [S1] ## πŸ“– μ„ΈλΆ€ λ‚΄μš© (Details) - `.btn { background-color: DodgerBlue; border: none; color: white; padding: 12px 30px; font-size: 20px; } .btn:hover { background-color: RoyalBlue; }`. [S1] ## βš–οΈ λͺ¨μˆœ 및 μ—…λ°μ΄νŠΈ (Contradictions & updates) μ—†μŒ β€” μ‹ κ·œ λ ˆμ‹œν”Ό, κΈ°μ‘΄ λ¬Έμ„œμ™€ λͺ¨μˆœλ˜λŠ” λ‚΄μš© μ—†μŒ. ## πŸ› οΈ 적용 사둀 (Applied in summary) Font Awesome λ‹€μš΄λ‘œλ“œ μ•„μ΄μ½˜μ΄ ν¬ν•¨λœ λ²„νŠΌμ„ auto width와 full width 두 κ°€μ§€λ‘œ 각각 μ œμ‹œν•˜λŠ” μ˜ˆμ œκ°€ μ›λ¬Έμ—μ„œ 직접 제곡됨. [S1] ## πŸ’» μ½”λ“œ νŒ¨ν„΄ (Code patterns) Icon + text button, auto or full width (HTML + CSS): ```html ``` ```css .btn { background-color: DodgerBlue; border: none; color: white; padding: 12px 30px; font-size: 20px; } .btn:hover { background-color: RoyalBlue; } ``` ## βœ… 검증 μƒνƒœ 및 신뒰도 - **μƒνƒœ:** draft - **검증 단계:** conceptual - **좜처 신뒰도:** B (W3Schools β€” widely used educational reference) - **μ‹ λ’° 점수:** 0.78 - **쀑볡 검사 κ²°κ³Ό:** μ‹ κ·œ 생성 (New discovery) ## πŸ”— 지식 κ·Έλž˜ν”„ (Knowledge Graph) - **μƒμœ„/루트:** [[W3Schools HOW TO]] - **κ΄€λ ¨ κ°œλ…:** [[HOWTO CSS Icon Buttons]], [[HOWTO CSS Block Buttons]] - **μ°Έμ‘° λ§₯락:** CSS Buttons μ„Ήμ…˜. ## πŸ“š 좜처 (Sources) - [S1] W3Schools β€” How To - Download Button β€” https://www.w3schools.com/howto/howto_css_download_button.asp ## πŸ“ λ³€κ²½ 이λ ₯ (Change history) - 2026-07-04: Initial draft synthesized from the W3Schools "How To - Download Button" recipe (Astra wiki-curation, P-Reinforce v3.1 format).