Two CSS features make this effect possible: (i) declaring that <a/> display as block and (ii) the use of background-image for <a/> with its pseudo classes.
<a/>
block
Using GIF image transparency allows us to take advantage of CSS background colors.