Home › Forums › Back End › Trying to create a CSS Sprite in WP › Re: Trying to create a CSS Sprite in WP
April 9, 2010 at 2:09 pm
#73792
noahgelman
Participant
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; }