Ver Mensaje Individual
  #4 (permalink)  
Antiguo 27/05/2013, 13:53
Avatar de alberto510a
alberto510a
 
Fecha de Ingreso: abril-2013
Mensajes: 351
Antigüedad: 11 años
Puntos: 35
Respuesta: menu desplegable, se superponen los li.

Si te digo la verdad esa forma de hacer un menú desplegable vertical nunca la vi te dejo el código con las modificaciones que yo le puse para que funcionara y ya tu lo adaptas a tu gusto:

Código CSS:
Ver original
  1. .nav-prin ul li {
  2.      background: #a61700;
  3.      color: #ffa040;
  4.      list-style-type:none;
  5.      float:left;
  6.      padding-top:15px;
  7.      margin-left: 0.01em;
  8.      height:35px;
  9.      text-align: center;
  10.      width: 100px;
  11.    
  12.      
  13. }
  14. .nav-prin ul li:hover{
  15.      background:#ff7d13;
  16.      font-weight: bold;
  17.      
  18. }
  19. .nav-prin ul li ul li {
  20.     background: yellow;
  21.     display: none;
  22. }
  23.  
  24. .nav-prin ul li:hover ul li {
  25.     display: block;
  26.     position:relative;
  27.     top:15px;
  28.     left:-40px;
  29.  
  30. }

Saludos.
__________________
No hay preguntas tontas, sino tontos que no preguntan.