CSS Rollovers
Join the DZone community and get the full member experience.
Join For FreeA quick rollover snippet...
.menu_img1 {
width: 25px;
height: 25px;
background: no-repeat url(image1.jpg);
}
a.rollover_img1:hover img {
background: no-repeat url(image2.jpg)
}
And the html hooblah:
The t.gif is a 1x1 transparent image. Tested in IE5 (Windows/Mac), Firefox, Safari.
CSS
Opinions expressed by DZone contributors are their own.
Comments