Mam problem ze sprite. Kod css:
Kod
#container li {
background: url(sprite.png) no-repeat top left;
}
.a{ background-position: 0 0; width: 200px; height: 75px; }
.a:hover{ background-position: 0 -76px; width: 200px; height: 75px; }
.b{ background-position: 0 -152px; width: 200px; height: 75px; }
.b:hover{ background-position: 0 -228px; width: 200px; height: 75px; }
.c{ background-position: 0 -304px; width: 200px; height: 75px; }
.c:hover{ background-position: 0 -380px; width: 200px; height: 75px; }
.d{ background-position: 0 -456px; width: 200px; height: 75px; }
.d:hover{ background-position: 0 -532px; width: 200px; height: 75px; }
background: url(sprite.png) no-repeat top left;
}
.a{ background-position: 0 0; width: 200px; height: 75px; }
.a:hover{ background-position: 0 -76px; width: 200px; height: 75px; }
.b{ background-position: 0 -152px; width: 200px; height: 75px; }
.b:hover{ background-position: 0 -228px; width: 200px; height: 75px; }
.c{ background-position: 0 -304px; width: 200px; height: 75px; }
.c:hover{ background-position: 0 -380px; width: 200px; height: 75px; }
.d{ background-position: 0 -456px; width: 200px; height: 75px; }
.d:hover{ background-position: 0 -532px; width: 200px; height: 75px; }
Kod html:
I to nie chce działać... Chodzi o to, żeby był efekt jak pod linkiem podanym niżej (po najechaniu na obrazek zostaje on zmieniony)
Kod
http://gry.xaa.pl/menu/efekt.php
Obrazek sprite:
Kod
http://gry.xaa.pl/menu/sprite.png
Dlaczego to nie chce działać? Może mi to ktoś wytłumaczyć?