PDA

View Full Version : Dreamweaver rollover image help!?



coykiesaol
07 Mar 2011, 08:07 PM
How can I make a rollover image that doesn't have the same size? I mean for example, the primary pic is 200 x 50... how do I make the rollover image a 300 x 70?.. is it possible?

Iced Earth
07 Mar 2011, 11:14 PM
Hmm, I've never done it, but maybe you could do it with a CSS sprite. Google that so you can get an idea of how it works.

From there: I would stack the two images, the smaller above the big one...set that to the anchor tag, give it a width and height, and then apply the same image to the a:hover, with background position set along with width/height?