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…
The thead element groups header rows in a table. Vanilla Breeze styles it with a raised background and a medium bottom border to visually separate column headers from data.
Description
The <thead> element contains one or more <tr> elements that define the header row(s) of a table. It must appear after any <caption> or <colgroup> elements and before <tbody> and <tfoot>.
Vanilla Breeze styles <thead> header cells with a raised background (var(--color-surface-raised)) and a thicker bottom border (var(--border-width-medium)) to visually separate headers from data rows.
When to Use
Every data table: All tables with meaningful data should have thead to define column headers
Multiple header rows: When columns have grouped headers or sub-headers
Printed tables: Headers repeat on each page when printing long tables
Sticky headers: Use data-sticky="header" on the table so headers remain visible while scrolling
<table><caption>Quarterly Report</caption><thead><tr><thscope="col">Product</th><thscope="col"data-numeric>Q1</th><thscope="col"data-numeric>Q2</th></tr></thead><tbody><!-- Data rows --></tbody><tfoot><tr><td>Total</td><tddata-numeric>$27,600</td><tddata-numeric>$31,800</td></tr></tfoot></table>
Sticky Header
Add data-sticky="header" to the <table> element so the header row stays visible as the user scrolls through long tables. VB applies position: sticky, inset-block-start: var(--sticky-offset, 0px), and z-index: 1 to the thead th cells, and redraws the header rule as an inset shadow so it stays with the stuck cells.
Sticky header
<tabledata-sticky="header"><thead><tr><thscope="col">ID</th><thscope="col">Product</th><thscope="col"data-numeric>Price</th></tr></thead><tbody><!-- Many rows of data --></tbody></table>
Sticky header caveats
It sticks to the nearest scroller. Normally that is the page. Inside a [data-table-scroll] region the header pins to the region instead (at 0); use data-table-scroll="block" to give the region a height so there is something to scroll.
It clears the site header. When the page uses a coordinated sticky header (header data-sticky), the thead offsets by --sticky-offset so it never slides underneath.
Print resets it. In print the header is static and repeats on every page instead.
Scope Attribute
The scopeattribute on <th> tells assistive technologies which cells the header relates to. See the shared demo for headers using scope="col" and scope="row".
CSS Reference
Vanilla Breeze applies these styles to <th> elements within thead: