treehouse : what would you like to learn today?
Web Design Web Development iOS Development

[Solved] [WordPress] Image:hover in sidebar

  • I'm using Image Widget (By Shane and Peter, Inc.) to add a image to sidebar, and then I used this to give it hover image.
    .widget_sp_image img:hover { content:url("pathtohoverimage/hover.png") }

    Put the problem is, that only Opera support this :D
    Any ideas how to do it more cross browser friendly? I have tried to find a widget for this, but haven't found one.
  • What happens to the image when you hover over it? As in, what effect are you trying to make?
  • Check "Free Beer" with Opera.
  • Aaahhh.

    If it's something that you have to update via the CSS anyways, there's no point in using a widget to place it there, might as well just hard code it into the template. That way you can use CSS sprites instead.
  • Yeah, that's the easiest way probably.