Comunidad de diseño web y desarrollo en internet online

Problema con menu desplegable en css

Citar            
MensajeEscrito el 19 Jun 2011 08:15 pm
Hola a todos, estoy haciendo mi primer menú desplegable en css y me he encontrado con un cosa rara. A ver si me podéis ayudar:

Mi problema se puede ver aquí: http://www.buyplus.es/borrar.html
Cuando pulsas sobre "Nosotros" el desplegable se abre sin problemas, pero al pulsar sobre "clientes" el submenú se despliega a la izquierda arriba en vez de debajo, como debería.

EL código html del menú es este:

<div id="caja_botonera">
<ul class="menu">
<li><a href="contacto.html" id="contacto" ></a></li>
<li><a href="clientes.html" id="clientes" ></a>
<ul>
<li><a href="marcas.html" id="marcas" ></a></li>
<li><a href="acceso.html" id="acceso" ></a></li>
</ul>
</li>
<li><a href="servicios.html" id="catalogo" ></a></li>
<li><a href="nosotros.html" id="nosotros" ></a>
<ul>
<li><a href="marcas.html" id="proyecto" ></a></li>
<li><a href="acceso.html" id="noticias" ></a></li>
<li><a href="acceso.html" id="trabaja" ></a></li>
</ul>
</li>
</ul>
</div>

He utilizado imágenes como enlaces, aqui está el css:

/*menu_display*/

ul.menu
{
list-style:none;
padding:0;
}
ul.menu ul
{
display:none;
list-style:none;
background-color:#FFF;
}

.menu ul li ul {
display: none;
background: #fff;
}

ul.menu li:hover ul
{
display:block;
width: 159px;
background-color:#FFF;
padding:0;

}

/*botones*/

#contacto
{
width:130px;
height:50px;
background-image:url(contacto.png);
float:right;
background-repeat:no-repeat;
}
#contacto:hover, #contacto_n
{
width:130px;
height:50px;
background-image:url(contacto.png);
float:right;
background-position:bottom;
background-repeat:no-repeat;
}
#clientes
{
width:123px;
height:50px;
background-image:url(clientes.png);
float:right;
}
#clientes:hover, #clientes_n
{
width:123px;
height:50px;
background-image:url(clientes.png);
float:right;
background-position:bottom;
}
#catalogo
{
width:122px;
height:50px;
background-image:url(catalogo.png);
float:right;
}
#catalogo:hover, #catalogo_n
{
width:122px;
height:50px;
background-image:url(catalogo.png);
float:right;
background-position:bottom;
}
#nosotros
{
width:159px;
height:50px;
background-image:url(nosotros.png);
float:left;
}
#nosotros:hover, #nosotros_n
{
width:159px;
height:50px;
background-image:url(nosotros.png);
float:left;
background-position:bottom;
}
/*sub-botonera: nosotros*/
#proyecto
{
width:159px;
height:24px;
background-image:url(bot_proyecto.png);
background-repeat:no-repeat;
float:left;
}
#proyecto:hover
{
width:159px;
height:24px;
background-image:url(bot_proyecto.png);
background-position:bottom;
background-repeat:no-repeat;
float:left;
}
#noticias
{
width:159px;
height:24px;
background-image:url(bot_noticias.png);
background-repeat:no-repeat;
float:left;
}
#noticias:hover
{
width:159px;
height:24px;
background-image:url(bot_noticias.png);
background-position:bottom;
background-repeat:no-repeat;
float:left;
}
#trabaja
{
width:159px;
height:24px;
background-image:url(bot_trabaja.png);
background-repeat:no-repeat;
float:left;
}
#trabaja:hover
{
width:159px;
height:24px;
background-image:url(bot_trabaja.png);
background-position:bottom;
background-repeat:no-repeat;
float:left;
}
/*fin_sub-botonera: nosotros*/ /*sub-botonera: clientes*/
#marcas
{
width:123px;
height:37px;
background-image:url(bot_marcas.png);
background-repeat:no-repeat;
float:left;
position:relative;


}
#marcas:hover
{
width:123px;
height:37px;
background-image:url(bot_marcas.png);
background-position:bottom;
background-repeat:no-repeat;
position:relative;

}
#acceso
{
width:123px;
height:24px;
background-image:url(bot_acceso.png);
background-repeat:no-repeat;
position:relative;

}
#acceso:hover
{
width:123px;
height:24px;
background-image:url(bot_acceso.png);
background-position:bottom;
background-repeat:no-repeat;
position:relative;

}


Ojalá descubran cuál es el problema! Muchas gracias.

Por rosana_bazaga

3 de clabLevel



 

chrome
Citar            
MensajeEscrito el 30 Jul 2011 04:43 am
aumenta el tamaño vertical de "caja_botonera", para el menu que surge de la seleccion "servicio", prueba eso, y dime que tal anda.

saludos.

Por DiseñadorMagico

8 de clabLevel



Genero:Masculino  

desarrollo senior jquery

chrome
Citar            
MensajeEscrito el 30 Jul 2011 10:32 pm
Yo tengo un problema similar en un menu vertical, pero solo con explorer... verlo aqui:
http://www.astrodidactico.com/test_menu_desplegable/

pero no se como resolverlo. Aunque tu problema es distinto, no obstante, no observo el problema que comentas, a mi me aparecen bien todos tus menus desplegados

saludos

Por Alraul

1 de clabLevel



Genero:Masculino  

enseño las estrellas

firefox

 

Cristalab BabyBlue v4 + V4 © 2011 Cristalab
Powered by ClabEngines v4, HTML5, love and ponies.