CSS Dropdow IE6.0 Problem

Status
Nicht offen für weitere Antworten.
M

mlaukel

Hallo,
ich habe ein CSS Dropdown auf meiner Seite eingebaut. Und sobald ich einen Link im 2. Level anklicke und darauf durchs menü scrolle, sind Unterpunkte schmaler dargestellt als vorgegeben (siehe Screenshot). Dieses Phänomen tritt nur im IE 6.0 auf, bei IE 7.0 & IE 5.5 ist die Darstellung korrekt. Meine Stylesheets:

Menu Style
Code:
/* style the outer div to give it width */
.menu {
width:775px;
font-size:0.85em;
padding-bottom:0;
margin-left:1px;
}

/* remove all the bullets, borders and padding from the default list styling */
.menu ul {
padding:0;
margin:0;
list-style-type:none;
}
.menu ul ul {
width:215px;
}

/* float the list to make it horizontal and a relative positon so that you can control the dropdown menu positon */
.menu li {
float:left;
width:129px;
position:relative;
}

/* style the links for the top level */
.menu a, .menu a:visited {
display:block;
font-size:14px;
font-family:Verdana, Arial, Helvetica, sans-serif;
text-decoration:none;
color:#000;
width:118px;
height:35px;
border:1px solid #fff;
border-width:1px 1px 0 0;
background:#d9e3eb;
padding-left:10px;
line-height:34px;
}

/* a hack so that IE5.5 faulty box model is corrected */
* html .menu a, * html .menu a:visited {
width:129px;
w\idth:118px;
}

/* style the second level background */
.menu ul ul a.drop, .menu ul ul a.drop:visited {
background:#d9e3eb;
}
/* style the second level hover */
.menu ul ul a.drop:hover{
background:#5a8ec6;
}
.menu ul ul :hover > a.drop {
background:#5a8ec6;
}

/* hide the sub levels and give them a positon absolute so that they take up no room */
.menu ul ul {
visibility:hidden;
position:absolute;
height:0;
top:36px;
left:0;
width:215px;
}

/* another hack for IE5.5 */
* html .menu ul ul {
top:35px;
t\op:36px;
}

/* style the table so that it takes no part in the layout - required for IE to work */
.menu table {position:absolute; top:0; left:0;}

/* style the second level links */
.menu ul ul a, .menu ul ul a:visited {
background:#d9e3eb;
color:#000;
height:auto;
line-height:1em;
padding:5px 10px;
width:215px;
/* yet another hack for IE5.5 */
}
* html .menu ul ul a{
width:215px;
w\idth:194px;
}
.menu ul ul li {
float:left;
width:215px;
position:relative;
}

/* style the top level hover */
.menu a:hover, .menu ul ul a:hover{
color:#fff;
background:#5a8ec6;
}
.menu :hover > a, .menu ul ul :hover > a {
color:#fff;
background:#5a8ec6;
}

/* make the second level visible when hover on first level list OR link */
.menu ul li:hover ul,
.menu ul a:hover ul{
visibility:visible;
}

Wrapper Style
Code:
/* CSS Document */
* {
margin: 0;
padding: 0;
font-size: 100.01%;
}

img {
display:block;
}

.none {
display: none;
}

#wrapper{
width:950px;
float:left;
text-align:left;/*for IE5.x*/
}

/*Begin style for row DIVs*/
#head{
width:950px;
height:110px;
}

#midsect{
width:950px;
height:40px;
}

#basesect{
width:950px;
height:524px;
}

#bottomsect{
width:950px;
}
/*end style for row DIVs*/

/*Begin style for column DIVs*/
#head{
width:950px;
height:110px;
float:none;
}

#spacerleft{
width:175px;
height:40px;
float:left;
margin-right:0 !important;
margin-right:-3px;
}

#naviright{
width:775px;
height:40px;
float:right;
margin-left:0 !important;
margin-left:-3px;
}

#menuleft{
width:175px;
height:524px;
float:left;
margin-right:0 !important;
margin-right:-3px;
}

#contentright{
width:775px;
height:524px;float:right;
margin-left:0 !important;
margin-left:-3px;
}

#bottomspacerleft{
width:415px;
float:left;
margin-left:0 !important;
margin-left:-3px;
}

#bottomcontentright{
width:474px;
float:left;
margin-left:0 !important;
margin-left:-3px;
}

#bottomright{
width:61px;
float:right;
margin-left:0 !important;
margin-left:-3px;
}
/*end style for column DIVs*/

Text style
Code:
body {
background-color: #FFFFFF;
color: #000000;
font: normal 0.8em/1.2em Verdana, Arial, Helvetica, sans-serif;
line-height: 1.5;
}

a {
color: #800000;
text-decoration: none;
}

a:visited {
color: #800000;
}

a:hover {
color: #800000;
text-decoration: underline;
}

h1 {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 22px;
font-weight: bold;
}

h2 {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 18px;
font-weight: normal;
}

h3 {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 14px;
font-weight: bold;  
}

Und hier der Menu Html-Code
Code:
        <div class="menu">
         <ul>
          <li><a href="index_de.php">Home</a></li>

          <li><a href="#">Produkte<!--[if IE 7]><!--></a><!--<![endif]-->
          <!--[if lte IE 6]><table><tr><td><![endif]-->
           <ul>
            <li><a href="inv_pl.php" title="Investitionspl&auml;ne">Investitionspl&auml;ne</a></li>
            <li><a href="bplan.php" title="Businessplanerstellung">Businessplanerstellung</a></li>
            <li><a href="ueb.php" title="&Uuml;bersetzung">&Uuml;bersetzung</a></li>
           </ul>
          <!--[if lte IE 6]></td></tr></table></a><![endif]-->
          </li>

          <li><a href="#">Projekte<!--[if IE 7]><!--></a><!--<![endif]-->
          <!--[if lte IE 6]><table><tr><td><![endif]-->
           <ul>
            <li><a href="akt_proj.php" title="aktuelle Projekte">aktuelle Projekte</a></li>
            <li><a href="gepl_proj.php" title="geplante Projekte">geplante Projekte</a></li>
           </ul>
          <!--[if lte IE 6]></td></tr></table></a><![endif]-->
          </li>

          <li><a href="#">Charts<!--[if IE 7]><!--></a><!--<![endif]-->
          <!--[if lte IE 6]><table><tr><td><![endif]-->
           <ul>
            <li><a href="trends.php" title="Profittrends">Profittrends</a></li>
            <li><a href="bcharts.php" title="B&ouml;rsencharts">B&ouml;rsencharts</a></li>
           </ul>
          <!--[if lte IE 6]></td></tr></table></a><![endif]-->
          </li>

          <li><a href="#">&Uuml;ber uns<!--[if IE 7]><!--></a><!--<![endif]-->
          <!--[if lte IE 6]><table><tr><td><![endif]-->
           <ul>
            <li><a href="team.php" title="Das Team">Das Team</a></li>
            <li><a href="ziele.php" title="Unsere Ziele">Unsere Ziele</a></li>
            <li><a href="phil.php" title="Philosophie">Philosophie</a></li>
           </ul>
          <!--[if lte IE 6]></td></tr></table></a><![endif]-->
          </li>

          <li><a href="kontakt.php">Kontakt</a></li>
         </ul>
        </div>

Ich hoffe jemand kann helfen, ich finde das Problem nicht. Danke !
 

Anhänge

  • menu.jpg
    menu.jpg
    39,5 KB · Aufrufe: 11
Hi,

mit diesem Quellcode aus deinem letzten Threads Hilfe bei CSS-Dropdown Anpassung/Erstellung gab bzw. gibt es im IE6 keine derartigen Probleme:

Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
  "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
<title>tutorials.de | demo_mlaukel</title>

<style type="text/css">
#wrapper {
width:775px;
height:35px;
margin:0 auto;
}

/* ================================================================
This copyright notice must be untouched at all times.

The original version of this stylesheet and the associated (x)html
is available at http://www.cssplay.co.uk/menus/final_drop2.html
Copyright (c) 2005-2007 Stu Nicholls. All rights reserved.
This stylesheet and the assocaited (x)html may be modified in any
way to fit your requirements.
=================================================================== */
/* style the outer div to give it width */
.menu {
width:775px;
font-size:0.85em;
padding-bottom:0;
margin-left:1px;
}

/* remove all the bullets, borders and padding from the default list styling */
.menu ul {
padding:0;
margin:0;
list-style-type:none;
}
.menu ul ul {
width:215px;
}

/* float the list to make it horizontal and a relative positon so that you can control the dropdown menu positon */
.menu li {
float:left;
width:129px;
position:relative;
}

/* style the links for the top level */
.menu a, .menu a:visited {
display:block;
font-size:14px;
font-family:Verdana, Arial, Helvetica, sans-serif;
text-decoration:none;
color:#000;
width:118px;
height:35px;
border:1px solid #fff;
border-width:1px 1px 0 0;
background:#d9e3eb;
padding-left:10px;
line-height:34px;
}

/* a hack so that IE5.5 faulty box model is corrected */
* html .menu a, * html .menu a:visited {
width:129px;
w\idth:118px;
}

/* style the second level background */
.menu ul ul a.drop, .menu ul ul a.drop:visited {
background:#d9e3eb;
}
/* style the second level hover */
.menu ul ul a.drop:hover{
background:#5a8ec6;
}
.menu ul ul :hover > a.drop {
background:#5a8ec6;
}

/* hide the sub levels and give them a positon absolute so that they take up no room */
.menu ul ul {
visibility:hidden;
position:absolute;
height:0;
top:36px;
left:0;
width:215px;
}

/* another hack for IE5.5 */
* html .menu ul ul {
top:35px;
t\op:36px;
}

/* style the table so that it takes no part in the layout - required for IE to work */
.menu table {position:absolute; top:0; left:0;}

/* style the second level links */
.menu ul ul a, .menu ul ul a:visited {
background:#d9e3eb;
color:#000;
height:auto;
line-height:1em;
padding:5px 10px;
width:215px
/* yet another hack for IE5.5 */
}
* html .menu ul ul a{
width:215px;
w\idth:194px;
}
.menu ul ul li {
float:left;
width:215px;
position:relative;
}

/* style the top level hover */
.menu a:hover, .menu ul ul a:hover{
color:#fff;
background:#5a8ec6;
}
.menu :hover > a, .menu ul ul :hover > a {
color:#fff;
background:#5a8ec6;
}

/* make the second level visible when hover on first level list OR link */
.menu ul li:hover ul,
.menu ul a:hover ul{
visibility:visible;
}
</style>

</head>
<body>
<div id="wrapper">
<div class="menu">
     <ul>
         <li><a href="#">Punkt 1</a></li>

         <li><a href="#">Punkt 2<!--[if IE 7]><!--></a><!--<![endif]-->
         <!--[if lte IE 6]><table><tr><td><![endif]-->
                 <ul>
                     <li><a href="#" title="#">Unterpunkt 2a</a></li>
                     <li><a href="#" title="#">Unterpunkt 2b</a></li>
                     <li><a href="#" title="#">Unterpunkt 2c</a></li>
                 </ul>
         <!--[if lte IE 6]></td></tr></table></a><![endif]-->
         </li>
         <li><a href="#">Punkt 3<!--[if IE 7]><!--></a><!--<![endif]-->
         <!--[if lte IE 6]><table><tr><td><![endif]-->
                 <ul>
                     <li><a href="#" title="#">Unterpunkt 3a</a></li>
                     <li><a href="#" title="#">Unterpunkt 3b</a></li>
                     <li><a href="#" title="#">Unterpunkt 3c</a></li>
                 </ul>
         <!--[if lte IE 6]></td></tr></table></a><![endif]-->
         </li>
         <li><a href="#">Punkt 4<!--[if IE 7]><!--></a><!--<![endif]-->
         <!--[if lte IE 6]><table><tr><td><![endif]-->
                 <ul>
                     <li><a href="#" title="#">Unterpunkt 4a</a></li>
                     <li><a href="#" title="#">Unterpunkt 4b</a></li>
                     <li><a href="#" title="#">Unterpunkt 4c</a></li>
                 </ul>
         <!--[if lte IE 6]></td></tr></table></a><![endif]-->
         </li>
         <li><a href="#">Punkt 5<!--[if IE 7]><!--></a><!--<![endif]-->
         <!--[if lte IE 6]><table><tr><td><![endif]-->
                 <ul>
                     <li><a href="#" title="#">Unterpunkt 5a</a></li>
                     <li><a href="#" title="#">Unterpunkt 5b</a></li>
                     <li><a href="#" title="#">Unterpunkt 5c</a></li>
                 </ul>
         <!--[if lte IE 6]></td></tr></table></a><![endif]-->
         </li>
         <li><a href="#">Punkt 6</a></li>
     </ul>
</div>
</div>
</body>
</html>
 
Ich weiß das es funktionierte... Aus irgendwelchen Gründen aber jetzt nicht mehr. Deswegen habe ich meine jetzigen Stylesheets gepostet, da ich den von dir genannten Quellcode bereits mehrere Male geändert habe. Schau bitte nochmal drüber und finde heraus wo der Fehler liegt. Danke !

Menu stylesheet hab ich überprüft ist exakt der selbe. Muss also woanders das Problem liegen.

HTML-Code des Menüs hab ich überprüft ist auch exakt der selbe.

Bleibt nur der Wrapper oder Text style oder der restliche HTML-Code.

Hier der komplette HTML-Code:
Code:
<?php 
include ("../checkuser.php"); 
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
 <head>
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
  <title>[PAGE TITLE]</title>
  <link rel="stylesheet" href="style.css" type="text/css">
  <link rel="stylesheet" href="menu.css" type="text/css">
  <link rel="stylesheet" href="text-style.css" type="text/css">
 </head>

 <body>
  <!--WRAPPER DIV TAGS-->
  <div id ="wrapper">

   <div id="head">
    <table id="headtab" width="950" style="height:110px;" border="0" cellpadding="0" cellspacing="0">
     <tr>
      <td><img src="Bilder/head_welcometext.gif" width="400" height="110" alt=""></td>
      <td><img src="Bilder/head_02.gif" width="418" height="110" alt=""></td>
      <td><a href="index_de.php"><img src="Bilder/head_logo.gif" width="110" height="110" border="0" alt="Zur&uuml;ck zur Startseite"></a></td>
      <td><img src="Bilder/head_04.gif" width="22" height="110" alt=""></td>
     </tr>
    </table>
   </div>

   <div id="midsect">
    <div id="spacerleft">
     <img src="Bilder/spacerleft.gif" width="175" height="40" alt="">
    </div>
    <div id="naviright">
     <table id="navirighttab" width="775" style="height:36px;" border="0" cellpadding="0" cellspacing="0">
      <tr>
       <td>
        <div class="menu">
        HIER STEHT DAS MENU ! CODE AUSGESCHNITTEN DA KORREKT!
        </div>
       </td>
      </tr>
     </table>
    </div>
   </div>
   
   <div id="basesect">
    <div id="menuleft">
     <table id="menulefttab" width="175" style="height:524px;" border="0" cellpadding="0" cellspacing="0">
      <tr>
       <td colspan="3"><img src="Bilder/menuleft_01.gif" width="175" height="10" alt=""></td>
      </tr>
      <tr>
       <td rowspan="2"><img src="Bilder/menuleft_02.gif" width="7" height="271" alt=""></td>
       <td><img src="Bilder/menuleft_top_menu_login.gif" width="160" height="255" alt=""></td>
       <td rowspan="2"><img src="Bilder/menuleft_04.gif" width="8" height="271" alt=""></td>
      </tr>
      <tr>
       <td><img src="Bilder/menuleft_05.gif" width="160" height="16" alt=""></td>
      </tr>
      <tr>
       <td colspan="3"><img src="Bilder/menuleft_bottom.gif" width="175" height="217" alt=""></td>
      </tr>
      <tr>
       <td colspan="3"><img src="Bilder/menuleft_07.gif" width="175" height="26" alt=""></td>
      </tr>
     </table>
    </div>
    <div id="contentright">
     <table id="contentrighttab" width="775" style="height:524px" border="0" cellpadding="0" cellspacing="0">
      <tr>
       <td colspan="4"><img src="Bilder/contentright_01.gif" width="775" height="25" alt=""></td>
       <td><img src="Bilder/spacer.gif" width="1" height="25" alt=""></td>
      </tr>
      <tr>
       <td colspan="2"><img src="Bilder/contentright_02.gif" width="275" height="256" alt=""></td>
       <td rowspan="3"></td>
       <td rowspan="4"><img src="Bilder/contentright_04.gif" width="125" height="499" alt=""></td>
       <td><img src="Bilder/spacer.gif" width="1" height="256" alt=""></td>
      </tr>
      <tr>
       <td><img src="Bilder/contentright_bottom.gif" width="151" height="217" alt=""></td>
       <td rowspan="3"><img src="Bilder/contentright_06.gif" width="124" height="243" alt=""></td>
       <td><img src="Bilder/spacer.gif" width="1" height="217" alt=""></td>
      </tr>
      <tr>
       <td rowspan="2"><img src="Bilder/contentright_07.gif" width="151" height="26" alt=""></td>
       <td><img src="Bilder/spacer.gif" width="1" height="2" alt=""></td>
      </tr>
      <tr>
       <td><img src="Bilder/contentright_08.gif" width="375" height="24" alt=""></td>
       <td><img src="Bilder/spacer.gif" width="1" height="24" alt=""></td>
      </tr>
     </table>
    </div>
   </div>

   <div id="bottomsect">
    <div id="bottomspacerleft">
     <img src="Bilder/spacerbottom.gif" width="175" height="25" alt="">
    </div>
    <div id="bottomcontentright">
    </div>
    <div id="bottomright">
    </div>
   </div>
   <!--END WRAPPER DIV TAGS-->
  </div>
 </body>
</html>
 
Zuletzt bearbeitet von einem Moderator:
Werde mir das später in Ruhe anschauen, denn ich muss jetzt kurz in die Uni-Klinik, um meiner Liebsten ein paar Klamotten etc. vorzubringen, da sie mich eben anrief, und mir mitteilte, dass sie über's Wochenende stationär aufgenommen wird :eek::mad:

Du hörst von mir ;)
 
Kein Problem. Muss ja nicht sofort sein :) Deiner Liebsten und dir alles gute und gute Besserung. Ist ja nichts was die Website grundlegend unbrauchbar macht. Bin nur Perfektionist und mich stören so Fehler wahnsinnig. Dank dir !
 
So, da bin ich wieder ...

Ich hab jetzt mal deine Quellcode-Angaben im IE6 aufgerufen, kann aber deinen präsentierten Fehler nicht reproduzieren:

ie6.jpg
 
mlaukel | PN hat gesagt.:
Ich beziehe mich auf folgenden Beitrag:
http://www.tutorials.de/forum/css/314888-css-dropdow-ie6-0-problem-new-post.html

Ok, probier es mal direkt auf der Website.

URL:
http://www.aj-investment.de/aji_mem_area/index_de.php

Klick bei Produkte --> Businessplanerstellung. Danach scroll einfach durch die Punkte und voila der Fehler tritt auf. Sind evtl. die Unterseiten fehlerhaft ?
Die Startseite bekommt vom w3c-Validator ein valides Markup bescheinigt, auf der genannten Unterseite sieht's hingegen ganz anders aus (siehe http://validator.w3.org/check?uri=h...ct+automatically)&doctype=Inline&ss=1&group=0), und das sind auch die einzigen Unterschiede, die da im Quellcode existieren.

Somit ist dies auch kein CSS-Problem, schliesslich kommt ja auf allen Projektseiten das selbe Stylesheet zum Einsatz, sondern wohl eine Folge des fehlerhaften Markups.

Das nächste Mal antworte doch bitte in dem Thema, denn ich achte während meiner Anwesenheit im Forum nicht fortwährend darauf, ob sich in meiner PN-Box etwas tut, und das Popupfenster des Forensystems beim Eingang einer neuen privaten Nachricht habe ich zudem deaktiviert, sodass es dann durchaus vorkommen kann, dass eine eingegangene PN mal für eine Weile von mir unbeachtet bleibt - im vorliegenden Fall war es eine knappe Stunde.
 
So die unvaliden Seiten habe ich repariert. Sie sind nun valide.

Voller Vorfreude auf die index_de.php Seite gegangen und direkt ausgeflippt. Jetzt zeigt er allein beim durchscrollen das Menü fehlerhaft an ohne das man nur einen Link klickt.

Ist das bei dir auch so ?
 
Das klingt jetzt völlig absurd und extrem mysteriös, aber irgendwas ist da mit den Verweiszielen (Dateinamen) in den href-Attributen des Submenüs "Produkte" im Busch, denn wenn ich sie testweise durch das #-Zeichen oder einen anders lautenden Dateinamen ersetze, taucht der Fehler nicht mehr auf :eek: :confused:

Ich denke, dass du in diesem Fall besser beraten bist, wenn du dich über die Kommentar-Funktion des Dropdown-Menüs direkt an den Autor Stu Nicholls wendest, denn zu den Gründen / Ursachen kann ich nichts sagen.
 
Probier es nochmal..

Ich glaube es waren die Unterstriche in den Links bzw. Dateien
 
Status
Nicht offen für weitere Antworten.

Neue Beiträge

Zurück