Layout · cross-page alignment

A pattern from the gf.cx specimen book

The rail that jumps between pages

A sticky element shared across a set of pages is only as steady as the thing above it. Pin a left nav to the top of the content and it will appear to twitch up and down as the reader moves page to page — not because the rail moved, but because the band above it is a different height on each page. Equalise the band, and the rail holds still.

Source · Dan, 2026-10-25 · seo.gf.cx Center of Excellence

"jump between pages" … "placement jumps higher than the others" … "thanks for fixing the alignment"

The problem

An editorial masthead — a full-bleed band with a title, a subtitle and a stat row — is content-sized. Its height is whatever its contents need. That is exactly right for a single page, and a quiet trap for a set of pages that share chrome below it.

The four pillars of a Center of Excellence each carry the same masthead and the same sticky left rail. Three of them have a three-line subtitle; one has a two-line subtitle. That one line of difference makes its band ~23px shorter, so its rail starts ~23px higher. Click between pillars and the nav visibly jumps — a wobble with no single page to blame, because every page is individually correct.

pillar · how-to
A short title
One short line.
pillar · faqs
A short title
A subtitle
that runs to
three lines.

before the dashed line is where the sticky rail starts — two different heights, so the nav "jumps".

The pattern

Don't fight the symptom by nudging the rail. Fix the cause: make every band in the set finish at the same height. The clean way is to reserve the variable element — the subtitle — to the set's tallest line-count, so a short subtitle holds the same vertical space as a long one and the band fills to match:

/* on the masthead shelf: assets.gf.cx/masthead */
.masthead__sub { min-height: calc(var(--mh-sub-lines, 0) * 1lh); }

/* then, once per page in the set — set it to the tallest subtitle */
.masthead { --mh-sub-lines: 3; }

Because the subtitle now reserves three lines on every page, each band's content reaches the same height, and the rail below starts at the same Y everywhere. The 0 default is a no-op, so a page that never sets the knob is unaffected.

pillar · how-to
A short title
One short line.
pillar · faqs
A short title
A subtitle
that runs to
three lines.

after --mh-sub-lines: 3 — both bands reserve three subtitle lines, so the rail starts at the same Y on every page. (This figure is live CSS, not a screenshot.)

Why not just floor the box

The reflex is to set a min-height on the band itself — --mh-min-h: 400px — so every band is at least that tall. It does line up the rail, and it is the right tool when the thing that varies isn't the subtitle. But it equalises the wrong dimension:

Reserving the subtitle equalises by content: the bands match and the content fills each one, with no number to keep in sync. Reach for the reserved lines first; keep the box-floor for the case where the varying element genuinely isn't the subtitle.

Where it applies

Reusable elements

Reference

Origin
seo.gf.cx Center of Excellence, 2026-10-25 — the four pillar pages (baseline, how-to, faqs, workshops) share a sticky rail; how-to's two-line subtitle made its band 23px shorter and the nav jumped.
Reference impl
The masthead shelf's --mh-sub-lines knob; the pillars set --mh-sub-lines: 3. All four now finish at the same band height (400px) and the rail starts at the same Y.
Failure it prevents
A sticky element that twitches page-to-page because each content-sized header is individually correct but collectively uneven — and the over-correction of flooring the box, which stops the twitch but leaves short pages floating.
Related patterns
The plate that outgrows its column — another "publish one value, let the layout track it" move, applied to full-bleed width.
Build cost
One CSS declaration on the shelf, one custom property per page. No script, nothing to load.