Fylgja Inline Footer
An inline footer is the smallest site footer: the copyright and a few links on one row, with a thin border above it. It suits pages that need little more than the legal links, and it is the same row the Classic Footer and Brand Footer use as their subfooter.
Preview
<footer class="flex-wrap gap align flow-none" style="--gap: 0.5rem 1.5rem; --py: 1.5rem; border-block-start-width: 1px; border-color: color-mix(in oklab, var(--root-bg) 75%, var(--root-fg))">
<p><small>© 2026 Acme. All rights reserved.</small></p>
<nav aria-label="Legal">
<ul class="flex-wrap gap" style="--gap: 0.5rem 1.5rem">
<li><a href="#">Privacy</a></li>
<li><a href="#">Terms</a></li>
<li><a href="#">Cookies</a></li>
<li><a href="#">Contact</a></li>
</ul>
</nav>
</footer>Usage
- Use a
<footer>withflex-wrap gap align. The default--alignof.alignspaces its children apart, so the copyright sits at the start and the links at the end. flow-noneclears the default margin on the paragraph, so the row height comes from--pyalone.- Draw the line with
border-block-start-widthand a border color mixed from--root-bgand--root-fg, so it follows light and dark mode. - Put the links in a
<nav>with a<ul>. Base already strips the list styles inside a nav, andflex-wrap gaplays the items out in a row. - Wrap the copyright in
<small>, the element for fine print.
Anatomy
| Part | Responsibility |
|---|---|
<footer> |
The row, its top border, and the spacing between the two parts. |
<small> |
The copyright line, set as fine print. |
<nav> |
The link list, named with aria-label. |
Accessibility
- A
<footer>that is a direct child of<body>is exposed as thecontentinfolandmark, so screen reader users can jump straight to it. - Name the nav with
aria-label(here “Legal”) so it is not confused with the main navigation. - Keep the border color for decoration only. The links and copyright must reach enough contrast against the page on their own.
Examples
Add menu groups above this row for the Classic Footer, or a branding column for the Brand Footer.
Related: Classic Footer, Brand Footer.
FAQ
Why is the border written as an inline style?
Fylgja has no border utility, and base already resets every border to 0 solid. Setting only the top width and a color is the smallest rule that draws the line, so it stays on the element instead of in a separate stylesheet.
Why does the link list not need list-none?
Base removes the bullets, margin, and padding from any list inside a nav, so the nav is all the list needs.
What happens on a narrow screen?
The row wraps. The copyright stays first and the links drop below it, with the row gap keeping the two lines apart.
Can I center everything instead?
Yes. Set the --align variable to center on the footer and both the copyright and the links line up in the middle, on one row or two.