Vanilla Breeze v0.7.4

Vanilla Breeze v0.7.4 released

0.7.4 gives the Ambient pack weather. A page names one feed URL on its own site, and the pack sets data-weather from it, uses its sunrise and sunset for dawn and dusk, and never shows a stale observation. Helpers for producing the feed from Open-Meteo are included. Ambient p…

Read the release notes

footer

Footer content for its nearest sectioning ancestor. Contains information about the author, copyright, related links, or metadata about the section.

Usage

Use the <footer> element for:

  • Site-wide footer with navigation, copyright, and contact info
  • Article footer with author info, tags, and share links
  • Section footer with related content or actions
  • Card footer with actions or metadata

A page can have multiple footer elements: one for the document and additional ones within articles, sections, or other sectioning content.

Examples

Default

Basic footer without additional styling.

.site

Full-width site footer with raised background. Links inside the footer's <nav> and lists are muted and un-underlined, brightening on hover and keyboard focus; links in running text (a copyright or credits line) keep the default underline so they aren't distinguished by colour alone.

.article

Article footer with border and muted text.

.card

Card footer with border and raised background, for card-like containers that don't style their own footer (such as article.card). <layout-card> already pads and borders a direct-child <footer>, so a plain <footer> is enough there.

.minimal

Simple centered footer with small text.

.columns

Multi-column footer layout for site footers.

data-sticky

Pins the footer to the bottom of its scroll container — useful for form actions and persistent calls to action. On mobile it rises above the virtual keyboard via env(keyboard-inset-height). See data-sticky for coordinating sticky headers and footers page-wide. In print, sticky footers return to normal flow.

Variants

Class / attribute Description
.site Full-width with generous padding and raised background
.article Top border with muted, smaller text for article metadata
.card Top border with raised background for card actions (not needed inside <layout-card>)
.minimal Centered, small, muted text for simple footers
.columns Auto-fit grid layout for multi-column site footers
[data-sticky] Sticks to the bottom (above the virtual keyboard) with background and top border; static in print

Accessibility

  • A <footer> is exposed as the contentinfo landmark only when it is scoped to <body> — that is, it has no <article>, <aside>, <main>, <nav> or <section> ancestor. Non-sectioning wrappers, including VB layout custom elements such as <layout-stack> at body level, don't change this. A footer inside one of those elements is a plain section footer with no landmark role.
  • Keep one body-level footer per page so there is a single contentinfo landmark
  • Use <nav> with aria-label="Footer navigation" for footer nav sections
  • Ensure sufficient color contrast for muted footer text
  • Footer links should be keyboard accessible and have visible focus states

Related

  • <header> - Complementary element for introductory content
  • <article> - Footer often contains article metadata
  • <nav> - For navigation links within footer
  • <address> - For contact information in footers
  • <main> - Footer is typically placed after main content
↑