← All Tools

CSS Sticky Footer Generator

Generate the CSS for a page footer that stays at the bottom of the viewport when content is short and scrolls naturally when content is long. Compare flexbox, CSS Grid, and the legacy min-height + margin-top:auto approach with a live preview.

Resize by switching device, or change “Preview content” to see short vs long.


  

About the four methods

⚠️ min-height: 100vh on iOS reserves space for the URL bar that may not be visible — use 100dvh for the dynamic value, or 100svh / 100lvh for explicit small / large viewport heights.

Copied!