LayoutApp Shell Layout
A header, a sidebar and a main area on CSS grid with a sticky header and one scrolling region; the sidebar folds behind a button on a narrow shell.
A site footer with a short brand note, four groups of links that wrap from four columns to two to one, and a bottom bar with a back-to-top link.
Checked on 3 December 2026 in Chrome 143.0.7499.169: 12 automated checks. What the checks are
<div class="sft" id="sft-top">
<div class="sft__page">
<p class="sft__stub">Page content sits here.</p>
</div>
<footer class="sft__footer">
<div class="sft__inner">
<div class="sft__brand">
<p class="sft__name">Example Site</p>
<p class="sft__tagline">A short line about the site goes here, in one or two sentences.</p>
</div>
<nav class="sft__groups" aria-label="Footer">
<section class="sft__group" aria-labelledby="sft-h-product">
<h2 class="sft__heading" id="sft-h-product">Product</h2>
<ul class="sft__list">
<li><a href="#">Features</a></li>
<li><a href="#">Pricing</a></li>
<li><a href="#">Examples</a></li>
<li><a href="#">Changelog</a></li>
</ul>
</section>
<section class="sft__group" aria-labelledby="sft-h-learn">
<h2 class="sft__heading" id="sft-h-learn">Learn</h2>
<ul class="sft__list">
<li><a href="#">Guides</a></li>
<li><a href="#">Tutorials</a></li>
<li><a href="#">Reference</a></li>
<li><a href="#">Glossary</a></li>
</ul>
</section>
<section class="sft__group" aria-labelledby="sft-h-company">
<h2 class="sft__heading" id="sft-h-company">Company</h2>
<ul class="sft__list">
<li><a href="#">About</a></li>
<li><a href="#">Contact</a></li>
<li><a href="#">Press kit</a></li>
</ul>
</section>
<section class="sft__group" aria-labelledby="sft-h-legal">
<h2 class="sft__heading" id="sft-h-legal">Legal</h2>
<ul class="sft__list">
<li><a href="#">Privacy</a></li>
<li><a href="#">Terms</a></li>
<li><a href="#">Cookies</a></li>
</ul>
</section>
</nav>
<div class="sft__base">
<p class="sft__copy">© 2026 Example Site</p>
<a class="sft__top" href="#sft-top">Back to top</a>
</div>
</div>
</footer>
</div>.sft {
--sft-page-bg: #ffffff;
--sft-page-ink: #4b5266;
--sft-bg: #14172a;
--sft-ink: #f1f2fb;
--sft-muted: #b9bfdc;
--sft-line: #343a5c;
--sft-accent: #9aa2ff;
--sft-focus: #ffffff;
box-sizing: border-box;
display: flex; flex-direction: column;
min-height: 100vh;
background: var(--sft-page-bg);
}
.sft *, .sft *::before, .sft *::after { box-sizing: inherit; }
.sft__page { flex: 1 1 auto; display: grid; place-items: center; padding: 1.5rem 1.25rem; }
.sft__stub { max-width: 28rem; margin: 0; padding: 0.9rem 1.5rem; color: var(--sft-page-ink); text-align: center; border: 2px dashed #c3c8da; border-radius: 14px; }
.sft__footer { color: var(--sft-ink); background: var(--sft-bg); border-top: 4px solid var(--sft-accent); }
.sft__inner { display: grid; gap: 2rem; max-width: 70rem; margin-inline: auto; padding: 2.25rem 1.25rem 1.25rem; }
.sft__name { margin: 0 0 0.4rem; font-size: 1.35rem; font-weight: 800; letter-spacing: -0.01em; }
.sft__tagline { max-width: 26rem; margin: 0; color: var(--sft-muted); font-size: 0.95rem; line-height: 1.55; }
.sft__groups { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.6rem 1.5rem; }
.sft__heading { margin: 0 0 0.7rem; color: var(--sft-accent); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.sft__list { margin: 0; padding: 0; list-style: none; }
.sft__list a, .sft__top {
display: inline-block; padding: 0.35rem 0; min-height: 2.25rem;
color: var(--sft-ink); font-size: 0.95rem; text-decoration: none; border-radius: 4px;
}
.sft__list a:hover, .sft__top:hover { color: var(--sft-accent); text-decoration: underline; text-underline-offset: 4px; }
.sft__list a:focus-visible, .sft__top:focus-visible { outline: 3px solid var(--sft-focus); outline-offset: 3px; }
.sft__base { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1rem; padding-top: 1.1rem; border-top: 1px solid var(--sft-line); }
.sft__copy { margin: 0; color: var(--sft-muted); font-size: 0.85rem; }
@media (min-width: 26rem) {
.sft__groups { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 40rem) {
.sft__groups { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 44rem) {
.sft__inner { grid-template-columns: 14rem minmax(0, 1fr); column-gap: 2rem; padding-top: 2rem; }
.sft__base { grid-column: 1 / -1; }
}
@media (min-width: 60rem) {
.sft__inner { column-gap: 4rem; padding-top: 3rem; }
}
@media (prefers-color-scheme: dark) {
.sft { --sft-page-bg: #101322; --sft-page-ink: #b3b9d0; --sft-bg: #1b1f35; --sft-line: #343a5c; }
.sft__stub { border-color: #3d4466; }
}Written by the author of the snippet. Each note has a test step or a markup check that reads the page.
LayoutA header, a sidebar and a main area on CSS grid with a sticky header and one scrolling region; the sidebar folds behind a button on a narrow shell.
LayoutA two-column article page whose contents list stays in view beside the text on wide screens and folds into a details block on phones.
LayoutAn accordion of five questions on details and summary, with an animated chevron and one open at a time through the name attribute.