--- 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).