Link to home
Start Free TrialLog in
Avatar of askurat1
askurat1Flag for United States of America

asked on

How to add hover state in css?

I can't seem to get the hover state to work in fancybox. I am just trying to add it to the close button when the window pops up. I just need a little help with this. I have added the files below. If you need anymore info just let me know. I have tried adding this on line 118.

Thanks,
Tony
fancy-closebox-hover.png
jquery.fancybox.css
ASKER CERTIFIED SOLUTION
Avatar of FDMilwaukee
FDMilwaukee
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of askurat1

ASKER

Well the thing is in the jquery.fancybox.css I have div#fancy_close {......}. This houses the close button itself. What do I need to add in this file to get it to change from fancy_closebox.png to fancy_closebox_hover.png when I hover over the close button.
The solution you provided doesn't work.
It might be helpful if you post the HTML code as well.  Perhaps the issue lies there.
Its ok I figured out the issue. I just didn't have it setup right in the css.
so have you solved the problem???
yes i have.
you should give out some points, or request the question be closed then.