Hi, here’s my problem:
I have a css dropdown menu (no javascript) that doesn’t work properly on IE (the last <li> item goes out of the <ul> list). It works also in IE with no EE tags (plain html and css) but when I turn it into a dynamical nav it has this problem.
HTML:
<div id="menu">
<ul id="nav">
{exp:channel:categories category="Edizioni" show_empty="no" channel="edizioni-passate"}
<li>
<a href="http://{path=edizioni/edizioni-passate}class=current">_Edizione {category_name}</a>
</li><!-- Edizioni passate -->
{/exp:channel:categories}
{exp:channel:categories category="Edizioni" show_empty="no" channel="edizione-corrente"}
<li>
<a href="http://{path=edizioni/edizione-corrente}class=current">_Edizione {category_name}</a>
</li><!-- Edizione corrente -->
{/exp:channel:categories}
<li><a href="#class=current">Gallery</a>
<ul>
{exp:channel:categories category="Edizioni" channel="gallery" show_empty="no"}
<li><a href="http://{path=gallery}">{category_name}</a></li>
{/exp:channel:categories}
</ul><!-- anni della Galleria -->
</li><!-- Galleria -->
<li>
<a href="http://{path=contatti}class=current">Contatti</a>
</li><!-- Contatti -->CSS:
#menu {
display: table;
width: 100%;
height: 33px;
}
#nav {
display: table-cell;
vertical-align: middle;
width: 100%;
margin: 0;
padding: 0;
}
#menu li {
position: relative;
list-style: none;
float: left;
padding-right: 10px;
}
#menu li a {
display: block;
padding: 3px;
text-decoration: none;}
#menu li a:hover {
background-color: #212120;
background-image: url({site_url}images/interface/nav_hover_bar.png);
background-repeat: repeat-x;
background-position: bottom;
}
#menu li .current {
background-color: #212120;
background-image: url({site_url}images/interface/nav_hover_bar.png);
background-repeat: repeat-x;
background-position: bottom;
}
#menu li ul {
position: absolute;
display: none;
width: 4em;
z-index: 99;
}
#menu li:hover ul, #menu li.hover ul {
display: block;
position: absolute;
margin: 0;
padding: 0;
}
#menu li:hover li, #menu li.hover li {
float: none;
}
#menu li:hover li a, #menu li.hover li a {
background-color: #000000;
}
#menu li li a:hover {
background-color: #e82e8a;
background-image: none;
}HTML with no EE tags that works:
<div id="menu">
<ul id="nav">
<li><a href="#">Edizione 2011</a></li>
<li><a href="#">Edizione 2012</a></li>
<li><a href="#">Gallery</a>
<ul>
<li><a href="#">Link 1</a></li>
<li><a href="#">Link 2</a></li>
<li><a href="#">Link 3</a></li>
</ul>
</li>
<li><a href="#">Contatti</a></li>
</ul>The site I’m working on: http://www.comequandosposi.it/2012/ The nav works in Safari, Firefox, Chrome, but not in Internet Explorer (the item “Contatti” goes away over the Facebook link).
I would appreciate if someone could help me, Thanks.