Ver Mensaje Individual
  #10 (permalink)  
Antiguo 22/05/2009, 19:08
Avatar de juaniquillo
juaniquillo
Colaborador
 
Fecha de Ingreso: noviembre-2005
Ubicación: San Juan, Puerto Rico
Mensajes: 5.745
Antigüedad: 18 años, 6 meses
Puntos: 281
Respuesta: Cambiar Piel de Spry Nav

aunque puedo dejarte lo que he hecho hasta ahora, jaja.

Lo primero es ponerle el background al enlace. También le das el tamaño de la imagen de fondo. Aprovechas para quitarle los paddings porque si no crecen los tamaños y los tamaños al los li y a los ul por la misma razon:
Código css:
Ver original
  1. ul.MenuBarHorizontal li
  2. {
  3.     margin: 0;
  4.     padding: 0;
  5.     list-style-type: none;
  6.     font-size: 100%;
  7.     position: relative;
  8.     text-align: left;
  9.     cursor: pointer;
  10.     float: left;
  11. }
  12. ul.MenuBarHorizontal ul
  13. {
  14.     margin: 0;
  15.     padding: 0;
  16.     list-style-type: none;
  17.     font-size: 100%;
  18.     z-index: 1020;
  19.     cursor: default;
  20.     position: absolute;
  21.     left: -1000em;
  22. }
  23. ul.MenuBarHorizontal a
  24. {
  25.     display: block;
  26.     cursor: pointer;
  27.     color: #333;
  28.     text-decoration: none;
  29.     background: url(imag/botonoff.png);
  30.     height: 45px;
  31.     width: 136px;
  32. }

entonces se ve así:


By juaniquillo

Si te das cuenta no salen los backgrounds en todos los sitios ya que hay enlaces específicos que tienen otros backgrounds (los de las flechas). Eso lo resueves quitándoles los backgrounds a esos enlaces:

Código css:
Ver original
  1. /* Menu items that have a submenu have the class designation MenuBarItemSubmenu and are set to use a background image positioned on the far left (95%) and centered vertically (50%) */
  2. ul.MenuBarHorizontal a.MenuBarItemSubmenu
  3. {
  4.  
  5. }
  6. /* Menu items that have a submenu have the class designation MenuBarItemSubmenu and are set to use a background image positioned on the far left (95%) and centered vertically (50%) */
  7. ul.MenuBarHorizontal ul a.MenuBarItemSubmenu
  8. {
  9.  
  10. }
  11. /* Menu items that are open with submenus have the class designation MenuBarItemSubmenuHover and are set to use a "hover" background image positioned on the far left (95%) and centered vertically (50%) */
  12. ul.MenuBarHorizontal a.MenuBarItemSubmenuHover
  13. {
  14.  
  15. }
  16. /* Menu items that are open with submenus have the class designation MenuBarItemSubmenuHover and are set to use a "hover" background image positioned on the far left (95%) and centered vertically (50%) */
  17. ul.MenuBarHorizontal ul a.MenuBarItemSubmenuHover
  18. {
  19.  
  20. }

Es más, si no vas a usar flechas esos estilos los puedes borrar. Ahora estamos bastante adelantados:


By juaniquillo

Pero no quieres que los enlaces de los segundos menús tengan esos backgrounds, así que le das el background que quieras
__________________
Por fin.. tengo algo parecido a un blog
Y por lo visto ya estoy escribiendo...