tags:

views:

95

answers:

2

Hello all, I have been reading StackOverflow for a while and now I have a question I cannot find an answer to.

i am trying to fade a background and increase on img size on rollover.

I have tried animate() and fadeTo(), however, the entire div fades. Do I need to absolute position my images over the div and not within it? img or img?

Is that the only way to get items within a div to not fade along with the background?

Thanks! Jason

A: 

Yes, you need to use absolute positioning, if you fade the div that is wrapping the image then everything in the div will fade.

jarrett
Great, that works for sure.
buildakicker
A: 

This might help: http://jsbin.com/uvoho/edit

Dan Heberden
Thanks! That's a great resource.
buildakicker