<div class="page-wrapper">
<header class="site-header">Header</header>
<main class="site-content">
<h1>Page Content</h1>
<p>This content is short, but the footer stays at the bottom.</p>
</main>
<footer class="site-footer">Footer Content</footer>
</div>html, body {
margin: 0;
height: 100%;
font-family: system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
.page-wrapper {
display: flex;
flex-direction: column;
min-height: 100vh;
}
.site-header {
background: #1f2937;
color: white;
padding: 20px;
}
.site-content {
flex: 1;
padding: 40px;
background: #f9fafb;
}
.site-footer {
background: #374151;
color: #d1d5db;
padding: 20px;
text-align: center;
}Nothing to show yetType HTML, CSS or JavaScript and your page appears here.
Click any element to find its code Esc
Check this code before you run it
It came from a shared link. It runs with fewer permissions, so it cannot open pop-ups, submit forms or start downloads.
0.00s / 0.00s
Nothing has animated yet. Hover, click or type in the preview and each CSS animation, transition or
element.animate() call shows up here as it plays.