Ver Mensaje Individual
  #1 (permalink)  
Antiguo 06/04/2010, 13:17
disweb
 
Fecha de Ingreso: octubre-2008
Mensajes: 165
Antigüedad: 15 años, 6 meses
Puntos: 12
Problema con Menú Spray

Hola compañeros foreros, hoy vengo a molestarles con una duda que no he encontrado cómo solucionar y sé que hay grandes profesionales conocedores de la materia:

En Dreamweaver CS3 creé un Menú Spray Horizontal, el me dió el código:

Código HTML:
Ver original
  1. <ul id="MenuBar1" class="MenuBarHorizontal">
  2.                 <li><a href="../index.php">Inicio</a>                  </li>
  3.                 <li><a href="../quienes.php">Quienes somos</a></li>
  4.                 <li><a href="../agenda.php">Agenda</a>                  </li>
  5.                 <li><a href="../zonasocios.php" class="MenuBarItemSubmenu">Zona de Socios</a>
  6.                     <ul>
  7.                       <li><a href="../agenda.php" class="sub-sub">Actividades</a></li>
  8.                     </ul>
  9.                 </li>
  10.                 <li><a href="../convivencia.php" class="MenuBarItemSubmenu">Convivencia Virtual</a>
  11.                   <ul>
  12.                       <li><a href="#" class="sub-sub">Noticias</a></li>
  13.                       <li><a href="#" class="sub-sub">Rutas</a></li>
  14.                       <li><a href="#" class="sub-sub">Nuestro Blog</a></li>
  15.                       <li><a href="#" class="sub-sub">Descuentos y Promociones</a></li>
  16.                   </ul>
  17.                 </li>
  18.                 <li><a href="../tips.php">Tips de Manejo</a></li>
  19.                 <li><a href="../contacto.php">Contacto</a></li>
  20.               </ul>


Y el CSS:

Código CSS:
Ver original
  1. @charset "UTF-8";
  2.  
  3. /* SpryMenuBarHorizontal.css - Revision: Spry Preview Release 1.4 */
  4.  
  5. /* Copyright (c) 2006. Adobe Systems Incorporated. All rights reserved. */
  6.  
  7. /*******************************************************************************
  8.  
  9.  LAYOUT INFORMATION: describes box model, positioning, z-order
  10.  
  11.  *******************************************************************************/
  12.  
  13. /* The outermost container of the Menu Bar, an auto width box with no margin or padding */
  14. ul.MenuBarHorizontal
  15. {
  16.     padding: 0;
  17.     list-style-type: none;
  18.     font-size: 100%;
  19.     cursor: default;
  20.     width: auto;
  21.     margin: 30px 0 0 0;
  22. }
  23. /* Set the active Menu Bar with this class, currently setting z-index to accomodate IE rendering bug: http://therealcrisp.xs4all.nl/meuk/IE-zindexbug.html */
  24. ul.MenuBarActive
  25. {
  26.     z-index: 1000;
  27. }
  28. /* Menu item containers, position children relative to this container and are a fixed width */
  29. ul.MenuBarHorizontal li
  30. {
  31.     margin: 0;
  32.     padding: 0;
  33.     list-style-type: none;
  34.     font-size: 100%;
  35.     position: relative;
  36.     text-align: left;
  37.     cursor: pointer;
  38.     width: 6em;
  39.     float: left;
  40. }
  41. /* Submenus should appear below their parent (top: 0) with a higher z-index, but they are initially off the left side of the screen (-1000em) */
  42. ul.MenuBarHorizontal ul
  43. {
  44.     margin: 0;
  45.     padding: 30px 0 0 20px;
  46.     list-style-type: none;
  47.     font-size: 100%;
  48.     z-index: 1020;
  49.     cursor: default;
  50.     width: 8.2em;
  51.     position: absolute;
  52.     left: -1000em;
  53. }
  54. /* Submenu that is showing with class designation MenuBarSubmenuVisible, we set left to auto so it comes onto the screen below its parent menu item */
  55. ul.MenuBarHorizontal ul.MenuBarSubmenuVisible
  56. {
  57.     left: auto;
  58. }
  59. /* Menu item containers are same fixed width as parent */
  60. ul.MenuBarHorizontal ul li
  61. {
  62.     width: 7em;
  63. }
  64. /* Submenus should appear slightly overlapping to the right (95%) and up (-5%) */
  65. ul.MenuBarHorizontal ul ul
  66. {
  67.     position: absolute;
  68.     margin: -5% 0 0 95%;
  69. }
  70. /* Submenu that is showing with class designation MenuBarSubmenuVisible, we set left to 0 so it comes onto the screen */
  71. ul.MenuBarHorizontal ul.MenuBarSubmenuVisible ul.MenuBarSubmenuVisible
  72. {
  73.     left: auto;
  74.     top: 0;
  75. }
  76.  
  77. /*******************************************************************************
  78.  
  79.  DESIGN INFORMATION: describes color scheme, borders, fonts
  80.  
  81.  *******************************************************************************/
  82.  
  83. /* Submenu containers have borders on all sides */
  84. ul.MenuBarHorizontal ul
  85. {
  86.     border: none;
  87. }
  88. /* Menu items are a light gray block with padding and no text decoration */
  89. ul.MenuBarHorizontal a
  90. {
  91.     display: block;
  92.     cursor: pointer;
  93.     padding: 5px 5px;
  94.     color: #333333;
  95.     text-decoration: none;
  96. }
  97. /* Menu items that have mouse over or focus have a blue background and white text */
  98. ul.MenuBarHorizontal a:hover, ul.MenuBarHorizontal a:focus
  99. {
  100.     color: #FFF;
  101. }
  102. /* Menu items that are open with submenus are set to MenuBarItemHover with a blue background and white text */
  103. ul.MenuBarHorizontal a.MenuBarItemHover, ul.MenuBarHorizontal a.MenuBarItemSubmenuHover, ul.MenuBarHorizontal a.MenuBarSubmenuVisible
  104. {
  105.     background-color: #000;
  106.     color: #FFF;
  107. }
  108.  
  109. /*******************************************************************************
  110.  
  111.  SUBMENU INDICATION: styles if there is a submenu under a given menu item
  112.  
  113.  *******************************************************************************/
  114.  
  115. /* 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%) */
  116. ul.MenuBarHorizontal a.MenuBarItemSubmenu
  117. {
  118.     background-image: url(SpryMenuBarDown.gif);
  119.     background-repeat: no-repeat;
  120.     background-position: 95% 50%;
  121. }
  122. /* 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%) */
  123. ul.MenuBarHorizontal ul a.MenuBarItemSubmenu
  124. {
  125.     background-image: url(SpryMenuBarRight.gif);
  126.     background-repeat: no-repeat;
  127.     background-position: 95% 50%;
  128.     background-color: #000;
  129. }
  130. /* 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%) */
  131. ul.MenuBarHorizontal a.MenuBarItemSubmenuHover
  132. {
  133.     background-image: url(SpryMenuBarDownHover.gif);
  134.     background-repeat: no-repeat;
  135.     background-position: 95% 50%;
  136. }
  137. /* 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%) */
  138. ul.MenuBarHorizontal ul a.MenuBarItemSubmenuHover
  139. {
  140.     background-image: url(SpryMenuBarRightHover.gif);
  141.     background-repeat: no-repeat;
  142.     background-position: 95% 50%;
  143. }
  144.  
  145. .sub-sub  /* Agregado  */
  146. {
  147.     background-color:#ffffff;
  148.     display: block;
  149.     width: 100px;
  150. }
  151.  
  152. /*******************************************************************************
  153.  
  154.  BROWSER HACKS: the hacks below should not be changed unless you are an expert
  155.  
  156.  *******************************************************************************/
  157.  
  158. /* HACK FOR IE: to make sure the sub menus show above form controls, we underlay each submenu with an iframe */
  159. ul.MenuBarHorizontal iframe
  160. {
  161.     position: absolute;
  162.     z-index: 1010;
  163. }

He cambiado algunos colores y valores, y solo agregué la regla .sub-sub por conveniencia de fondo en los subítems.

En Firefox ya se va acercando a lo que quiero:


Pero en el Internet Explorer no puedo quitar, todo el fondo blanco y la palabra "false" al inicio de los subítems, se ve muy diferente:


Ojalá me puedan hacer el favor de ayudar y gracias anticipadas.