The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End Trying to create a CSS Sprite in WP Re: Trying to create a CSS Sprite in WP


You don’t need to restate the css properties on the :hover part, they stay there. All you need on the :hover part is background-position. And I believe in order to use background position you you need to state 2 positions for the image background. For example

li.toplist #homebtn a { width: 88px; height: 46px; background-image: url(images/topnav_01.png) top center no-repeat; }

li.toplist #homebtn a:hover { background-position:0px -46px; }