I'm trying to do a macromedia-style, two level menu with CSS. I was almost done with it last night (it's only ugly text right now and the second level menus still need proper alignment, but the hovering part is done) but today I tried it on IE6 and, you guessed right, it doesn't work at all . IE6 just displays a vertical list (it's supposed to be horizontal), and the second level just doesn't work.
The strange part is that I based my menu on this blog which shows a menu that does work on IE6.
here is the css:
and the html:
Can you guys spot any property that doesn't work right on IE6? I was thinking that it might have something to do with display: block;, which I'm using to make the list display horizontally. thanks
The strange part is that I based my menu on this blog which shows a menu that does work on IE6.
here is the css:
Code:
ul#menu
{
list-style-type: none;
padding: 0;
margin: 0;
border: 0;
top: 0px;
left: 0px;
width: 900px;
height: 25px;
}
ul#menu li
{
padding: 0;
margin-left: 0;
display: block;
float: left;
}
ul#menu li a
{
padding-left: 7px;
padding-right: 7px;
text-decoration: none;
display: block;
height: 25px;
}
ul#menu li ul
{
display: block;
visibility: hidden;
position: absolute;
left: 0px;
width: 800px;
margin: 0;
height:40px;
}
ul#menu li:hover ul
{
visibility: visible;
z-index: 100;
}
and the html:
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>Menu Etiangui</title>
<link href="menu.css" rel="stylesheet" type="text/css" />
</head>
<body>
<ul id="menu">
<li><a href="#">Acerca de Nosotros</a>
</li>
<li><a href="#">Comunidad</a>
<ul>
<li><a href="#">Foro</a></li>
<li><a href="#">Clubs y Asociaciones</a></li>
<li><a href="#">Links</a></li>
<li><a href="#">Avisos de Ocasion</a></li>
<li><a href="#">Eventos y Noticias</a></li>
</ul>
</li>
<li><a href="#">Nuestros Albums</a>
<ul>
<li><a href="#">Exporta</a></li>
<li><a href="#">Arquitectura</a></li>
<li><a href="#">Cronologia</a></li>
<li><a href="#">Ofertas</a></li>
<li><a href="#">Comentarios Clientes</a></li>
</ul>
</li>
<li><a href="#">Sellos</a>
<ul>
<li><a href="#">Ventas</a></li>
<li><a href="#">Ofertas</a></li>
<li><a href="#">Intercambios</a></li>
<li><a href="#">Comentarios Clientes</a></li>
</ul>
</li>
<li><a href="#">Subastas</a>
<ul>
<li><a href="#">Subastas etiangui</a></li>
<li><a href="#">Subastas ebay</a></li>
<li><a href="#">Comentarios clientes</a></li>
</ul>
</li>
<li><a href="#">Descargas</a>
<ul>
<li><a href="#">Catalogos</a></li>
<li><a href="#">Localizador</a></li>
<li><a href="#">Publicidad varia</a></li>
<li><a href="#">Series / listados</a></li>
</ul>
</li>
<li><a href="#">Preguntas Frecuentes</a>
<ul>
<li><a href="#">Formas de pago</a></li>
<li><a href="#">Formas de embarque</a></li>
</ul>
</li>
<li><a href="#">Contacto</a>
<ul>
<li><a href="#"></a></li>
</ul>
</li>
</ul>
</body>
</html>
Can you guys spot any property that doesn't work right on IE6? I was thinking that it might have something to do with display: block;, which I'm using to make the list display horizontally. thanks