What border-bottom: none Does
Entry 001 · tab title 2
In the CSS, every tab button has border: 4px solid #111
which draws all four sides, then immediately border-bottom: none
which removes the bottom side only. The second rule overrides
the first for that one side. CSS properties can be overridden
in this way — the last rule that applies wins.
The result is a U-shaped border: left, top, and right sides
visible, bottom open. This is what makes a tab look like a
folder tab rather than just a button.
z-index and the Shelf
Entry 002 · tab title 2
The active tab has z-index: 1 applied to it.
Without this, the shelf line drawn by the container's
border-bottom could render on top of the tab's covering
border, and the illusion would break. z-index controls the
stacking order of positioned elements — higher numbers appear
in front of lower ones. The tab buttons all have
position: relative, which is required before
z-index has any effect. An element with its default static
positioning ignores z-index entirely.