Background-position doesn’t work in WordPress
-
Hi,
I’m trying to use this code inside a theme that I created but for some reason the background-position don’t work inside WordPress (background-image does work) but when I test it outside WP it works fine.
Any Idea?
Thanks#icons li a { text-indent: -999px; display: block; width: 77px; height: 77px; background-image: url("images/sprite.png"); } #icons li a#twitter { background-position: 0 0px; } #icons li a#twitter:hover { background-position: 0 -77px; } #icons li a#myspace { background-position: -77px 0px; } #icons li a#myspace:hover { background-position: -77px -77px; } #icons li a#facebook { background-position: -154px 0px;} #icons li a#facebook:hover { background-position: -154px -77px; } #icons li a#yfrog { background-position: -231px 0px;} #icons li a#yfrog:hover { background-position: -231px -77px; } #icons li a#flickr { background-position: -308px 0px;} #icons li a#flickr:hover { background-position: -308px -77px; } #icons li a#youtube { background-position: -385px 0px;} #icons li a#youtube:hover { background-position: -385px -77px; }
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Background-position doesn’t work in WordPress’ is closed to new replies.