CSS only rollovers

Style Sheets vs. JavaScript covers CSS image rollovers — change the background colour of a link containing an image on :hover, and make select parts of your image background transparent, and you can get interesting outline effects and so on. I suspect that if you were really flash you could actually have a totally different image, but you’d have to be pretty outstandingly flash — dither the images so that pixels 1,3,5,… are from image 1 and 2,4,6,…are from image 2, and make them transparent. Or something. Besides, the guy’s called Stuart, which automatically (a) earns him one coolness point, and (b) means there’s more than one of us and we might catch up with all the flamin’ Erics that there are in the tech world in general and in the CSS/HTML world in particular. ——-

More in the discussion (powered by webmentions)

  • (no mentions, yet.)