Ver Mensaje Individual
  #2 (permalink)  
Antiguo 24/04/2013, 04:22
rufus
 
Fecha de Ingreso: mayo-2009
Ubicación: Andalucia
Mensajes: 650
Antigüedad: 15 años, 5 meses
Puntos: 1
Respuesta: problema con menu css horizontal en img dos estados

Ya lo he solucionado dejo el codigo:

Código CSS:
Ver original
  1. /* css del menu*/
  2. #menu
  3. {
  4.    
  5.      width: 940px;
  6.      height: 60px;
  7.      margin-top: 55px;
  8.  
  9. }
  10.  
  11. #menu a
  12. {
  13.     position: relative;
  14. }
  15.  
  16. #menu li a span
  17. {
  18.     position: absolute;
  19.     top: 0;
  20.     left: 0;
  21.     background-repeat: no-repeat;
  22.     cursor: pointer;
  23.  
  24.     display: inline;
  25.  }
  26.  
  27.  
  28.  
  29. .inicio
  30. {
  31.     top: 15px; left: 5px;
  32. }
  33.  
  34.  
  35.  
  36. .inicio span
  37. {
  38.     width: 100px;
  39.     height: 44px;
  40.     background-image: URL(imagenes/botones/inicio.png);
  41. }
  42.  
  43. .inicio span:hover
  44. {
  45.        background-image: URL(imagenes/botones/inicio2.png);
  46. }
  47.  
  48. /* Fin css del menu*/


Código HTML:
Ver original
  1. <div id="menu">
  2.             <ul>
  3.                 <li><a class="inicio" href="index.php?page=home"><span></span></a></li>
  4.            
  5.             </ul>
  6.         </div>