Hallo
Hab ein Problem mit einem neuen drop-down menü.
hab mich durch mehrer scripts gewurstelt (darunter auch die hochgelobten suckerfish und son of suckerfish scripts) und bringe keines "über" den content.
auch der häufig erwähnte tipp mit absolut+z-index scheint bei mir nicht zu funzen.
bitte um hilfe
nav:
betreffende css-zeilen:
css-zeilen der umliegenden divs aus der zentralen css-datei
beim dropdown-script handelt es sich um den simplejQueryDropDown
Simple jQuery Dropdowns
bitte um rat
lg Geri
Hab ein Problem mit einem neuen drop-down menü.
hab mich durch mehrer scripts gewurstelt (darunter auch die hochgelobten suckerfish und son of suckerfish scripts) und bringe keines "über" den content.
auch der häufig erwähnte tipp mit absolut+z-index scheint bei mir nicht zu funzen.
bitte um hilfe
nav:
HTML:
<div id="nav1"><a href="index.php?section=home" <?php if ($_GET['section'] == "home") { echo 'class="aktiv" style="color:#EA1D25;"'; } ?>><b>HOME</b></a></div>
<div id="nav12">
<ul class="dropdown">
<li><a href="" ><b>ANGEBOT</b></a>
<ul class="submenu"> <li><a href="">Test 1</a></li>
<li><a href="">Test 2</a></li>
</ul> </li></ul></div>
betreffende css-zeilen:
HTML:
ul { list-style: none; }
/* LEVEL ONE*/ul.dropdown { position: absolute;z-index:99;top:-16px; left:-35px; width:120px; }ul.dropdown li { font-weight: bold; float: left; zoom: 1; background: #ccc; }ul.dropdown a:hover { color: #000; }ul.dropdown a:active { color: #ffa500; }ul.dropdown li a { display: block; color: #222; }ul.dropdown li:last-child a { border-right: none; } /* Doesn't work in IE */ul.dropdown li.hover,ul.dropdown li:hover { background: #F3D673; color: black; position: relative; }ul.dropdown li.hover a { color: black; }
/* LEVEL TWO*/ul.dropdown ul { width: 220px; visibility: hidden; position: absolute; top: 100%; left: 0; z-index:100;}ul.dropdown ul li { font-weight: normal; background: #f6f6f6; color: #000; border-bottom: 1px solid #ccc; float: none; } /* IE 6 & 7 Needs Inline Block */ul.dropdown ul li a { border-right: none; width: 100%; display: inline-block; }
/* LEVEL THREE*/ul.dropdown ul ul { left: 100%; top: 0; }ul.dropdown li:hover > ul { visibility: visible; }
css-zeilen der umliegenden divs aus der zentralen css-datei
HTML:
#navi{position:absolute;z-index:55;height:25px;width:1025px;background-color:#ffffff;left:0px;top:425px;}
#content{position:absolute;z-index:2;height:675px;width:1025px;
background-image:url('../img/maus_bg.png');background-repeat:no-repeat;top:450px;overflow:auto;
}
#inner_content{position:absolute;z-index:3;width:970px;height:590px;left:30px;top:30px;text-align:justify;font-family:Arial, Helvetica, sans-serif;
}
#nav1{position:absolute;height:25px;width:100px;background-color:#d9dadc;font-family:Arial, Helvetica, sans-serif;line-height:25px;text-align:center;}
#nav12{position:absolute;z-index:66;height:25px;width:90px;left:120px;font-family:Arial, Helvetica, sans-serif;background-color:#ffffff;line-height:25px;text-align:center;}
beim dropdown-script handelt es sich um den simplejQueryDropDown
Simple jQuery Dropdowns
bitte um rat
lg Geri