How do I do a rollover background image?
-
I’ve modified the theme a little and made it my own kinda. Here is the css I have for this.. I don’t know how to make it rollover the footer and then it change colors whenever you rollover a link. I want to eventually have a link for facebook and twitter and maybe more at the bottom of the page (https://hawk-talk.com/newspaper) and as you see now I have one picture…
https://hawk-talk.com/newspaper/wp-content/themes/blueberry/images/strawberry-footer-ro.jpg
And when you roll over the facebook logo, I want the facebook logo to look like this:
https://hawk-talk.com/newspaper/wp-content/themes/blueberry/images/strawberry-footer.jpg
I’m not sure how you would do this with a “background image” or what the css would be.. And can I do different rollovers for the same image? Like if you rollover facebook then it “lights up” and then if you rollover twitter, it “lights up”.. Thanks in advance, my css is below.. tell me if you need anything else!
/* hawkberry css */ .hawkberry #header { background-image: url('images/strawberry-header.jpg'); } .hawkberrycolor, .hawkberry a, .hawkberry h2 a:hover, .hawkberry h3 a:hover{ color: #f00; } .hawkberry a:hover{ color: #b00; } .hawkberry .entry a:visited{ color: #f66; } .hawkberry #headertxt h1, .hawkberry #headertxt h1 a, .hawkberry #headertxt h2 { color: #eee; } .hawkberry #headertxt h1 a:hover { color: #fff; } .hawkberry #footer { background-image: url('images/strawberry-footer-ro.jpg'); hover: url('images/strawberry-footer.jpg') color: #000; } /* [end] hawkberry css */
- The topic ‘How do I do a rollover background image?’ is closed to new replies.