I’m trying to use CSS sprites for my navigation in the header .php file in wordpress.
This is my first attempt at making a CSS sprite and the first time I’m using a wordpress template..
I’m trying to use background image in the CSS for link and hover states –I think my CSS is OK, but it’s not working.
I have a feeling I need to do something with the html or php in the .php file but I’m not exactly sure what. Here’s what I have, that’s not working…
Code:
li.toplist #homebtn a:link{width: 88px; height: 46px; background-image: url(images/topnav_01.png) no-repeat; }
li.toplist #homebtn a:hover {width: 88px; height: 46px; background-image: url(images/topnav_01.png) no-repeat;background-position:0px -46px; }