Symptom: under a row of cards on my front page sat an “all runestones →” link. Clicking it opened the card above it instead. The link looked fine; it just wouldn’t take a click.
Cause: each card was a link styled height: 100% with padding. By default, CSS uses box-sizing: content-box, so padding is added on top of that 100%. Every card was 34px taller than the grid cell holding it. The overflow was invisible against the dark background, but it was there, sitting on top of the link below and swallowing its clicks.
I wasted time on the wrong theory first. I assumed broken HTML nesting, fixed a real but unrelated bug, and the problem stayed.
Fix: make padding count inside the height.
.cv-stone {
height: 100%;
box-sizing: border-box; /* padding now fits inside the 100% */
padding: 1rem 1rem 1rem 3.4rem;
}
Check it yourself: when a click lands somewhere unexpected, ask the browser what’s actually under the pointer:
const r = document.querySelector('.the-link').getBoundingClientRect();
document.elementFromPoint(r.left + 5, r.top + r.height / 2);
// expected the link; got the card above it
Lesson: measure before you theorize. Comparing an element’s height to its containercontainer A lightweight, isolated package of an application and its dependencies. It shares the host's kernel, so it starts in seconds, unlike a full virtual machine.’s took one line, and it would have pointed straight at the cause.
Applies to: any modern browser; this is standard CSS box-sizing behaviour. Checked October 2026.



