--- id: howto-css-fixed-footer title: "How To - Fixed Footer" category: "Web_Recipes" status: "draft" verification_status: "conceptual" canonical_id: "" aliases: ["position fixed bottom footer"] duplicate_of: "" source_trust_level: "B" confidence_score: 0.83 created_at: 2026-07-04 updated_at: 2026-07-04 review_reason: "" merge_history: [] tags: ["howto", "css", "w3schools", "layout", "position", "footer"] raw_sources: ["https://www.w3schools.com/howto/howto_css_fixed_footer.asp"] applied_in: [] github_commit: "" --- # [[HOWTO CSS Fixed Footer]] ## 🎯 ν•œ 쀄 톡찰 (One-line insight) `position: fixed; bottom: 0; left: 0; width: 100%;` pins the footer to the VIEWPORT, not the document β€” meaning it stays visible on screen even while the page scrolls, which is exactly what makes a "fixed footer" behaviorally different from a normal footer that simply sits at the end of page content and scrolls away with everything else. [S1] ## 🧠 핡심 κ°œλ… (Core concepts) - **`position: fixed`** β€” removes the element from normal flow and anchors it relative to the VIEWPORT (browser window), not the document, so it never scrolls out of view. [S1] - **`bottom: 0; left: 0; width: 100%;`** β€” pins the fixed element to the bottom edge and stretches it the full viewport width. [S1] ## πŸ“– μ„ΈλΆ€ λ‚΄μš© (Details) - Full example: `.footer { position: fixed; left: 0; bottom: 0; width: 100%; background-color: red; color: white; text-align: center; } `. [S1] ## βš–οΈ λͺ¨μˆœ 및 μ—…λ°μ΄νŠΈ (Contradictions & updates) μ—†μŒ β€” μ‹ κ·œ λ ˆμ‹œν”Ό, κΈ°μ‘΄ λ¬Έμ„œμ™€ λͺ¨μˆœλ˜λŠ” λ‚΄μš© μ—†μŒ. ## πŸ› οΈ 적용 사둀 (Applied in summary) λΉ¨κ°„ 배경의 "Footer" ν…μŠ€νŠΈ λ°”λ₯Ό ν™”λ©΄ ν•˜λ‹¨μ— κ³ μ •ν•˜λŠ” μ΅œμ†Œ μ˜ˆμ œκ°€ μ›λ¬Έμ—μ„œ 직접 μ œμ‹œλ¨. [S1] ## πŸ’» μ½”λ“œ νŒ¨ν„΄ (Code patterns) Fixed footer pinned to the viewport bottom (CSS): ```css .footer { position: fixed; left: 0; bottom: 0; width: 100%; background-color: red; color: white; text-align: center; } ``` ## βœ… 검증 μƒνƒœ 및 신뒰도 - **μƒνƒœ:** draft - **검증 단계:** conceptual - **좜처 신뒰도:** B (W3Schools β€” widely used educational reference) - **μ‹ λ’° 점수:** 0.83 - **쀑볡 검사 κ²°κ³Ό:** μ‹ κ·œ 생성 (New discovery) ## πŸ”— 지식 κ·Έλž˜ν”„ (Knowledge Graph) - **μƒμœ„/루트:** [[W3Schools HOW TO]] - **κ΄€λ ¨ κ°œλ…:** [[HOWTO CSS Fixed Menu]], [[HOWTO CSS Fixed Sidebar]], [[HOWTO CSS Sticky Element]] - **μ°Έμ‘° λ§₯락:** CSS Layout & Positioning μ„Ήμ…˜. ## πŸ“š 좜처 (Sources) - [S1] W3Schools β€” How To - Fixed Footer β€” https://www.w3schools.com/howto/howto_css_fixed_footer.asp ## πŸ“ λ³€κ²½ 이λ ₯ (Change history) - 2026-07-04: Initial draft synthesized from the W3Schools "How To - Fixed Footer" recipe (Astra wiki-curation, P-Reinforce v3.1 format).