CSS sets width and height attributes for the button image, and tells the browser, "When someone hovers over the image, make it disappear and reveal the background image for the div" - (The "hover" state) using the {visibility: hidden;} property.

Requires two images of identical size. Six buttons would require six classes and possibly 12 images.