CSS sprite method
April 1, 2004 1:24 PM
Subscribe
Stupid CSS Tricks: can the CSS sprite method described at various places (
ALA, for example) be used to change the background of a container other than the one being rolled over?
With javascript you can, upon rolling over one image (image A), change not only image A but image B, C-- or as many images as you want, really. Is this possible to accomplish with a purely CSS solution?
Yes, I realize the css sprite method actually changes the position of the container's background image. I figure the basic theory should be the same.
posted by precocious to computers & internet (5 comments total)
element1:hover element2 {background: url(rollover.gif);}
posted by yerfatma at 2:20 PM on April 1, 2004