Ver Mensaje Individual
  #1 (permalink)  
Antiguo 12/03/2010, 03:06
Ozone
 
Fecha de Ingreso: febrero-2009
Mensajes: 202
Antigüedad: 15 años, 2 meses
Puntos: 3
No puedo terminar un sprite css

Hola!,
ya no se me ocurre que más hacer, estoy como hace 20 minutos prbando y nada. Este es el sprite que estoy haciendo:
Código:
<a id="jq" href="URL">Textooooooooooo</a>

Código:
<style type="text/css">
#jq {
background-image: url();
width:105px;
height:34px;
}
a#jq {
background:url(http://i41.tinypic.com/2emhlk3.png) 0 0 no-repeat;
width:105px;
height:34px;
}
a#jq:hover {
background-position: 0 -44px;
}
</style>
Si se fijan solo me pone el fondo cuando le pongo texto :(

Probé algo así también:
Código:
<div id="bg"><a id="jq" href="URL">Textooooooooooo</a></div>

Código:
<style type="text/css">
#bg {
width:105px;
height:34px;
}
a#jq {
background:url(http://i41.tinypic.com/2emhlk3.png) 0 0 no-repeat;
width:105px;
height:34px;
}
a#jq:hover {
background-position: 0 -44px;
}
</style>
Pero no me doy cuenta que &%%$% hago mal :)


Les agradezco una mano