Ver Mensaje Individual
  #5 (permalink)  
Antiguo 28/10/2011, 10:54
Ooze3d
 
Fecha de Ingreso: marzo-2006
Mensajes: 42
Antigüedad: 18 años, 2 meses
Puntos: 4
Respuesta: Mover texto verticalmente dentro de un DIV

SOLUCIONADO!!

Una solución poco ortodoxa, pero funciona. Os dejo el CSS. Si alguien quiere que se lo explique, lo hago.

Cita:
#new_fantasy
{
display:block;
background-image:url('images/button_new.png');
background-position:top;
position:relative;
width: 244px;
height: 42px;
top: 10px;
margin: 0 auto;
z-index: 10;
}
a.content
{
display:block;
width: 244px;
height: 21px;
position:absolute;
padding-top:21px;
z-index: 10;
font: 15px Courier;
font-weight:600;
color:#906;
text-shadow:-2px -2px 0px #300;
text-shadow:1px 1px 0px #FF9;
text-decoration:none;
text-align:center;
}
#new_fantasy:hover
{
background-position:center;
}
#new_fantasy:active
{
background-position:bottom;
}