F flexr.dev

Layout Recipe

Pin a Footer to the Bottom with Tailwind Flexbox

A sticky footer keeps your footer pinned to the bottom of the viewport even when page content is short. Apply 'flex flex-col justify-between min-h-screen' to your page wrapper: the column direction stacks header, main, and footer vertically, and 'justify-between' pushes the first child to the top and the last child to the bottom. Alternatively, put 'flex-1' on the main content area to make it absorb all spare space.

The playground below is pre-configured with this exact layout — tweak any control to explore, then copy the Tailwind or vanilla CSS from the exporter.

Live Preview

Current Layout:

Popular Layout Guides