Change background position with jQuery
Posted
by Mats
on Stack Overflow
See other posts from Stack Overflow
or by Mats
Published on 2009-11-21T22:09:46Z
Indexed on
2010/04/11
12:13 UTC
Read the original article
Hit count: 351
Hi!
I'd like to change the background position of a CSS-class while hovering a li-element.
HTML:
<div id="carousel">
<ul id="submenu">
<li>Apple</li>
<li>Orange</li>
</ul>
</div>
CSS:
#carousel { float: left; width: 960px; height: 360px; background: url(../images/carousel.png); }
Any suggestions on how to do this?
© Stack Overflow or respective owner