The concept is pretty basic, the pseudo elements and spans are positioned using position: absolute and they are positioned relative to their parent <th> headers which have position: relativeHere is the example!Here is what it looks like in Chrome / Firefox / IE10+. IE 8 - 9 should work with their proprietary filters.Here is the HTML / CSS: