Problema con menú añadido Tema Solucionado
Publicado: 19 Jun 2013, 19:16
Hola, tengo un pequeño problema con un menú horizontal que he añadido al foro. Al pasar el cursor sobre el menú hay alguna pestaña que se despliega y ocurre esto en el perfil del usuario:

Pero en los foros es aún peor ya que aparece bien sin tapar, pero al llegar a la altura del contenido del foro, este se esconde y no se pueden llegar a los enlaces inferiores de la pestaña del menú.
Haber si me podéis ayudar.
Aquí os dejo el CSS del menú y el HTML:
CSS:
HTML:
Saludos.
Pero en los foros es aún peor ya que aparece bien sin tapar, pero al llegar a la altura del contenido del foro, este se esconde y no se pueden llegar a los enlaces inferiores de la pestaña del menú.
Haber si me podéis ayudar.
Aquí os dejo el CSS del menú y el HTML:
CSS:
Código: Seleccionar todo
/* el menú en si mismo */
.menuslot
{
border-radius: 5px;
list-style-type: none;
margin: 0 auto; /* si queremos centrarlo */
padding: 0;
/* la altura y su ancho dependerán de los textos */
height: 40px;
width: auto;
/* el color de fondo */
background: #555;
background: -moz-linear-gradient(#555,#222);
background: -webkit-linear-gradient(#555,#222);
background: -o-linear-gradient(#555,#222);
background: -ms-linear-gradient(#555,#222);
background: linear-gradient(#555,#222);
margin-bottom: 5px;
}
/* si es necesario, evitamos que Blogger de problemas con los saltos de línea cuando escribimos el HTML */
.menuslot br { display:none; }
/* cada item del menu */
.menuslot li {
display: block;
float: left; /* la lista se ve horizontal */
height: 40px;
list-style: none;
margin: 0;
padding: 0;
position: relative;
}
.menuslot li a {
border-left: 1px solid #000;
border-right: 1px solid #666;
color: #EEE;
display: block;
font-family: Tahoma;
font-size: 13px;
font-weight: bold;
line-height: 28px;
padding: 0 14px;
margin: 6px 0;
text-decoration: none;
/* animamos el cambio de color de los textos */
-webkit-transition: color .2s ease-in-out;
-moz-transition: color .2s ease-in-out;
-o-transition: color .2s ease-in-out;
-ms-transition: color .2s ease-in-out;
transition: color .2s ease-in-out;
}
/* eliminamos los bordes del primer y el último */
.menuslot li:first-child a { border-left: none; }
.menuslot li:last-child a{ border-right: none; }
/* efecto hover cambia el color */
.menuslot li:hover > a { color: Crimson; }
/* los submenús */
.menuslot ul {
border-radius: 0 0 5px 5px;
left: 0;
margin: 0;
opacity: 0; /* no son visibles */
position: absolute;
top: 40px; /* se ubican debajo del enlace principal */
/* el color de fondo */
background: #222;
background: -moz-linear-gradient(#222,#555);
background: -webkit-linear-gradient(#22,#555);
background: -o-linear-gradient(#222,#555);
background: -ms-linear-gradient(#222,#555);
background: linear-gradient(#222,#555);
/* animamos su visibildiad */
-moz-transition: opacity .25s ease .1s;
-webkit-transition: opacity .25s ease .1s;
-o-transition: opacity .25s ease .1s;
-ms-transition: opacity .25s ease .1s;
transition: opacity .25s ease .1s;
}
/* son visibes al poner el cursor encima */
.menuslot li:hover > ul { opacity: 1; }
/* cada un ode los items de los submenús */
.menuslot ul li {
height: 0; /* no son visibles */
overflow: hidden;
padding: 0;
/* animamos su visibildiad */
-moz-transition: height .25s ease .1s;
-webkit-transition: height .25s ease .1s;
-o-transition: height .25s ease .1s;
-ms-transition: height .25s ease .1s;
transition: height .25s ease .1s;
}
.menuslot li:hover > ul li {
height: 36px; /* los mostramos */
overflow: visible;
padding: 0;
}
.menuslot ul li a {
border: none;
border-bottom: 1px solid #111;
margin: 0;
/* el ancho dependerá de los textos a utilizar */
padding: 5px 20px;
width: 170px;
}
/* el último n otiene un borde */
.menuslot ul li:last-child a { border: none; }
/* PROBAMOS DE NUEVO HABER QUE SALE */
/* los submenús */
.menuslot ul li ul {
border-radius: 0 0 5px 5px;
left: 0;
margin: 0;
opacity: 0; /* no son visibles */
position: absolute;
top: 0px; /* se ubican debajo del enlace principal */
left: 210px; /* AÑADO ESTA LÍNEA */
/* el color de fondo */
background: #222;
background: -moz-linear-gradient(#222,#555);
background: -webkit-linear-gradient(#22,#555);
background: -o-linear-gradient(#222,#555);
background: -ms-linear-gradient(#222,#555);
background: linear-gradient(#222,#555);
/* animamos su visibildiad */
-moz-transition: opacity .25s ease .1s;
-webkit-transition: opacity .25s ease .1s;
-o-transition: opacity .25s ease .1s;
-ms-transition: opacity .25s ease .1s;
transition: opacity .25s ease .1s;
}
/* son visibes al poner el cursor encima */
.menuslot li ul /* AÑADO UN "LI UL" EXTRA */ li:hover > ul { opacity: 1; }
/* cada un ode los items de los submenús */
.menuslot ul li /* AÑADO UN "UL LI" EXTRA */ ul li {
height: 0; /* no son visibles */
overflow: hidden;
padding: 0;
/* animamos su visibildiad */
-moz-transition: height .25s ease .1s;
-webkit-transition: height .25s ease .1s;
-o-transition: height .25s ease .1s;
-ms-transition: height .25s ease .1s;
transition: height .25s ease .1s;
}
.menuslot li lu /* AÑADO UN "LI UL" EXTRA */ li:hover > ul li {
height: 36px; /* los mostramos */
overflow: visible;
padding: 0;
}
.menuslot ul li /* AÑADO UN "UL LI" EXTRA */ ul li a {
border: none;
border-bottom: 1px solid #111;
margin: 0;
/* el ancho dependerá de los textos a utilizar */
padding: 5px 20px;
width: 150px;
}
/* el último n otiene un borde */
.menuslot ul li /* AÑADO UN "UL LI" EXTRA */ ul li:last-child a { border: none; }
Código: Seleccionar todo
<!-- MENÚ AÑADIDO A LA WEB -->
<ul class="menuslot">
<li><a href="http://www.clubslotmedinacars.es/home.php"> Inicio </a></li>
<li><a href="#"> Nuestro Club </a>
<ul>
<li><a href="http://www.clubslotmedinacars.es/dondestamos.php"> Dónde estamos </a></li>
<li><a href="http://www.clubslotmedinacars.es/historia.php"> Historia del club </a></li>
<li><a href="http://www.clubslotmedinacars.es/organizacion.php"> Organización </a></li>
</ul>
</li>
<li><a href="http://www.clubslotmedinacars.es/calendario.php"> Calendario </a></li>
<li><a href="http://www.clubslotmedinacars.es/clasificaciones.php"> Clasificaciones </a></li>
<li><a href="http://www.clubslotmedinacars.es/viewforum.php?f=12"> Reglamentación </a>
<ul>
<li><a href="http://www.clubslotmedinacars.es/viewforum.php?f=14"> Velocidad </a>
<!-- <ul>
<li><a href="http://www.clubslotmedinacars.es/viewtopic.php?f=14&t=5"> Autos locos </a></li>
<li><a href="http://www.clubslotmedinacars.es/viewtopic.php?f=14&t=6"> Fórmula 1 </a></li>
<li><a href="http://www.clubslotmedinacars.es/viewtopic.php?f=14&t=7"> Gran Turismo (GT) </a></li>
<li><a href="http://www.clubslotmedinacars.es/viewtopic.php?f=14&t=8"> Grupo C </a></li>
<li><a href="http://www.clubslotmedinacars.es/viewtopic.php?f=14&t=9"> Le Mans Prototype (LMP) </a></li>
<li><a href="http://www.clubslotmedinacars.es/viewtopic.php?f=14&t=10"> Pelotillas </a></li>
<li><a href="http://www.clubslotmedinacars.es/viewtopic.php?f=14&t=11"> Turismo </a></li>
</ul>-->
</li>
<li><a href="http://www.clubslotmedinacars.es/viewforum.php?f=15"> Rally </a>
<!-- <ul>
<li><a href="http://www.clubslotmedinacars.es/viewtopic.php?f=15&t=12"> Clásicos </a></li>
<li><a href="http://www.clubslotmedinacars.es/viewtopic.php?f=15&t=14"> Grupo N </a></li>
<li><a href="http://www.clubslotmedinacars.es/viewtopic.php?f=15&t=13"> Grupo SN </a></li>
</ul>-->
</li>
<li><a href="http://www.clubslotmedinacars.es/viewtopic.php?f=15&t=15"> Raid </a></li>
</ul>
</li>
<li><a href="http://www.clubslotmedinacars.es/viewforum.php?f=1"> Foro </a>
<ul>
<li><a href="http://www.clubslotmedinacars.es/viewforum.php?f=2"> General </a></li>
<li><a href="http://www.clubslotmedinacars.es/viewforum.php?f=5"> Competiciones del club </a></li>
<li><a href="http://www.clubslotmedinacars.es/viewforum.php?f=6"> Competiciones externas </a></li>
<li><a href="http://www.clubslotmedinacars.es/viewforum.php?f=12"> Reglamentos </a></li>
<li><a href="http://www.clubslotmedinacars.es/viewforum.php?f=7"> Fuera de contexto </a></li>
</ul>
</li>
<li><a href="http://www.clubslotmedinacars.es/viewforum.php?f=13"> Galería / Multimedia </a></li>
<!-- IF not S_IS_BOT -->
<!-- IF S_DISPLAY_MEMBERLIST -->
<li style="float: right; border: none;"><a href="{U_MEMBERLIST}" title="{L_MEMBERLIST_EXPLAIN}"> Socios </a></li><!-- ENDIF -->
<!-- ENDIF -->
</ul>
<!-- MENÚ AÑADIDO A LA WEB -->