Tema: botones
Ver Mensaje Individual
  #3 (permalink)  
Antiguo 13/07/2012, 14:10
Avatar de memoadian
memoadian
Colaborador
 
Fecha de Ingreso: junio-2009
Ubicación: <?php echo 'México'?>
Mensajes: 3.696
Antigüedad: 14 años, 9 meses
Puntos: 641
Respuesta: botones

aunque lo mejor es que sea un sprite el botón.

es decir que la imagen tenga el boton sin y con el efecto y cuando se haga hover moverle la posicion

Código CSS:
Ver original
  1. .miboton{
  2.     width : 100px;
  3.     height : 20px;
  4.     background-image : url(boton.png);
  5.     background-position : top right ;
  6. }
  7.      
  8. .miboton:hover {
  9.     background-position : top left;
  10. }

tambien se puede mover en pixeles top, left, right y bottom