Problem mit overflow, Navigation verschoben...

Problem mit overflow, Navigation verschoben...

Beitragvon buemplizer » 22.08.2009, 18:14

Hallo!

Auf meiner Seite ([url="http://test.pfarreimusik.ch"]http://test.pfarreimusik.ch[/url]) habe ich momentan zwei Probleme:

1. Die Navigation
Der IE stellt die Navigation nicht so dar wie die Gekko-Browser. Woran könnte das liegen? Bzw. wie müsste eine entsprechende Browser-Weiche aussehen?

2. Overflow
Auf der Seite http://test.pfarreimusik.ch/ueber_un...zungsliste.php gibt es offenkundig ein Problem mit dem Overflow. Wie kriege ich die beiden boxen in den Inhalt?

Hier der HTML-Code:

Code: Alles auswählen
<!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">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<meta name="Robots" content="all, index, follow" />

<link rel="shortcut icon" href="../favicon.ico" />
<link href="../css/index.css" rel="stylesheet" type="text/css" />

<script type="text/javascript"
src="../scripts/jquery-1.3.2.min.js"></script>

<script type="text/javascript">
$(document).ready(function() {

   $("ul#topnav li").hover(function() { //Hover over event on list item
      $(this).css({ 'background' : ''}); //Add background color and image on hovered list item
      $(this).find("span").show(); //Show the subnav
   } , function() { //on hover out...
      $(this).css({ 'background' : ''}); //Ditch the background
      $(this).find("span").hide(); //Hide the subnav
   });
    $("ul#topnav li span a").hover(function() { //Hover over event on list item
      $(this).css({ 'background' : ''}); //Add background color and image on hovered list item
      $(this).find("span").show(); //Show the subnav
   } , function() { //on hover out...
      $(this).css({ 'background' : ''}); //Ditch the background
      $(this).find("span").hide(); //Hide the subnav
   });
});
</script>

<title>Pfarreimusik W&uuml;nnewil-Flamatt</title>
</head>
<html>
<body>

<?php include ("../include/head.php"); ?>
<?php include ("../include/navi.php"); ?>
<div id="container">
  <div id="contents">
    <h1>Aktuelle Besetzungsliste</h1>

   <div id="linkespalte">
   <h3>Direktion</h3>
    <li>Jacques Rossier</li>
    <br />
    <li><i>Vizedirigenten:</i></li>
    <li>Hubert Schmutz</li>
    <li>Louis-Alexandre Yerly</li>
        <h3>Klarinette</h3>
    <li>Andrey Olivier</li>
    <li>Baumann Philippe</li>
    <li>Brülhart-Boschung Anita</li>
    <li>Lehmann Corinne</li>
    <li>Lehmann Ruth</li>
    <li>Poffet Muriel</li>
    <li>Roux Erna</li>
    <li>Spicher Ewald</li>
    <li>Schmutz-Schneuwly Daniela</li>
    <li>Weber-Aebischer Monika</li>
    <li>Zosso-Udry Andrea</li>

    <h3>Bassklarinette</h3>
    <li>Zollet Gertrud</li>

    <h3>Piccolo / Flöte</h3>
    <li>Freiburghaus Daniela</li>
    <li>Grossrieder Erwin (Piccolo)</li>
    <li>Grossrieder Eva</li>
    <li>Jenny Karin</li>
    <li>Roux Jeannine</li>
    <li>Schafer Jasmin</li>
    <li>Vonlanthen Samira (Piccolo)</li>
    <li>Zengaffinen Christa</li>

    <h3>Oboe</h3>
    <li>Roman Stampfli</li>

    <h3>Fagott</h3>
    <li>Pfander Stefanie</li>
    <li>Zollet Markus</li>
   
    <h3>Saxophon</h3>
    <li>Binz Jana (Alto)</li>
    <li>Brülhart Jan-Luca (Bariton)</li>
    <li>Maury Karin (Tenor)</li>
    <li>Schneuwly Anne (Alto)</li>
    <li>Schneuwly Silvia (Alto)</li>
    </div>
   
    <div id="rechtespalte">
    <h3>Waldhorn</h3>
    <li>Buchs Manuel</li>
    <li>Fasel Judith</li>
    <li>Hug Edi</li>
    <li>Ledermann Monika</li>
    <li>Schafer Oswald</li>

    <h3>Trompete</h3>
    <li>Fanger Marco</li>
    <li>Jenni Hansueli</li>
    <li>Marti Erich</li>
    <li>Schafer Iwan</li>
    <li>Weber Clemens</li>
    <li>Weber Stefan</li>

    <h3>Tenorhorn</h3>
    <li>Aebischer Armin</li>
    <li>Lehmann Alois</li>
    <li>Perler Heinrich</li>
    <li>Riedo Andreas</li>

    <h3>Posaune</h3>
    <li>Perler Christoph</li>
    <li>Roux Gilber</li>
    <li>Wyler Lorenz</li>

    <h3>Tuba</h3>
    <li>Hayoz Josef</li>
    <li>Yerly Louis-Alexandre</li>

    <h3>Kontrabass</h3>
    <li>Rigolet-Neuhaus Claudia</li>

    <h3>Perkussion</h3>
    <li>Boschung Reto</li>
    <li>Grossrieder Jan</li>
    <li>Perler Alain</li>
    <li>Roux Dominique</li>
    <li>Schmutz Hubert</li>
    <li>Stampfli Simon</li>
    </div>
  </div>
</div>
<?php include ("../include/footer.php"); ?>

</body>
</html>


Und hier das entsprechende CSS:
Code: Alles auswählen
   * { margin: 0; padding: 0; }
   
   body
   {
   font: 15px Verdana, Arial, Helvetica, sans-serif;
   color: #FFFFFF;
   background-color: #1F1C1C;
   background-image:url(../images/noten_hand.gif);
   background-repeat: no-repeat;
   background-position:bottom left;
   background-attachment: fixed;
    }   /*#7f4000*/
   #head
   {
   margin: 30px auto 0px auto;
   width: 900px;
   height: 140px;
   background-image:url(../include/head.gif);
    }
   #footer
   {
   margin: 0px auto 30px auto;
   padding: 15px;
   font: 90% arial, hevetica, sans-serif;
   background-image: url(../include/footer.gif);
   color: #FFFFFF;
   text-align: center;
   width: 870px;
   height: 10px;
   clear: both;
   }
   br {
   line-height: 80%;
}
   .mailto {
   color: #000000;
   padding-left: 20px;
   background-image: url(../images/letter.gif);
    background-position: center left;
    background-repeat: no-repeat;
   }

   a:link.text {
   color: #FFFFFF;
   font-style:italic;
   padding-left: 15px;
   background-image: url(../images/link.gif);
   background-position: center left;
   background-repeat: no-repeat;
}
   a:visited.text {
   color: #999999;
   font-style:italic;
   padding-left: 15px;
   background-image: url(../images/link.gif);
   background-position: center left;
   background-repeat: no-repeat;

}
      a:hover.text, a:active.text
   {
   color: #000000;
   text-decoration: underline;
   font-style:italic;
   padding-left: 15px;
   background-image: url(../images/link.gif);
   background-position: center left;
   background-repeat: no-repeat;
   }

   a:link.navi {
   color: #FFFFFF;
}
   a:visited.navi {
   color: #999999;
}
   a[href$=".pdf"] {
    padding-left: 20px;
    background-image: url(../images/pdf.gif);
    background-position: center left;
    background-repeat: no-repeat;
}

      a:hover.navi, a:active.navi
   {
   color: #000000;
   }
   
   li {
   list-style-type: none;
   }
      
   h1   {
   color: #CCCCCC;
   font: 220% Verdana Arial, Helvetica, sans-serif;
   font-weight: bold;
   margin: 25px 0 10px 0;
   }
   h2
   {
   color: #FFFFFF;
   font: 120% Verdana, Arial, Helvetica, sans-serif;
   font-weight: bold;
   margin: 20px 0 7px 0;
   }
      
   h3
   {
   color: #FFFFFF;
   font: 106% Verdana, Arial, Helvetica, sans-serif;
   font-weight: bold;
   margin: 15px 0 5px 0;
   }
   #container
   {
   margin: 0em auto;
   width: 876px;
   color: #FFFFFF;
   background-color:#3366cc;
   border: 12px solid;
   border-color: #0000FF;
   min-height: 550px;
   height: auto;
   }
   #contents
   {
      margin: 0px 100px 20px 30px;
      padding: 20px;
   }
      .imagefloatrechts
      {
      float: right;
      padding : 3px;
      border : 2px solid #0066cc;
      margin : 0px -10px 15px 15px;
      z-index: 2;
      }
      .imagefloatlinks
      {
      float: left;
      padding : 3px;
      border : 2px solid #0066cc;
      margin : 0px 15px 15px -10px;
      z-index: 2;
      }
      #linkespalte {
      float: left;
      padding: 5px;
      margin: 5px;
      width: 300px;
      }
      #rechtespalte {
      float: right;
      padding: 5px;
      margin: 5px;
      width: 300px;
      }
   #contents p
   {
      line-height: 130%;
      margin: 0px 0px 5px 0px;
   }

/*Navigation*/   
   .container_navi {
    margin: 0px auto 0px auto;
   width: 876px;
   border: 12px solid #0000ff;
   z-index:3;
   }   
   
   ul#topnav {
   margin: 12px 0 0 0 ;
   padding: 0 0 0 38px;
   float: left;
   width: 838px;
   list-style: none;
   position: relative;
   top: -50px;/*--Set relative positioning on the unordered list itself - not on the list item--*/
   font: 100% Verdana, Arial, Helvetica, sans-serif;
   background: #3366cc;
   z-index:2;
}
ul#topnav li {
    float: left;
   margin: 0; padding: 0;
}
ul#topnav li a {
   padding: 5px 10px;
    display: block;
   text-decoration: none;
   color:#ffffff;
}
ul#topnav li:hover {
   font-weight:bold;
   border-top: 2px solid #ffffff;
   border-bottom: 3px solid #ffffff;
}
/*--Notice the hover color is on the list item itself, not on the link. This is so it can stay highlighted even when hovering over the subnav--*/

ul#topnav li span {
   float: left;
   padding: 10px 0;
   position: absolute;
   left: 0;
   display: none; /*--Hide by default--*/
   width: 876px;
   font-weight: normal;
   font-size: 100%;
}

ul#topnav li:hover span { display: block; } /*--Show subnav on hover--*/
ul#topnav li span a { display: inline; } /*--Since we declared a link style on the parent list link, we will correct it back to its original state--*/
ul#topnav li span a:hover {
     border-top: 1px solid #ffffff;
    border-bottom: 2px solid #ffffff;
}

/*Gästebuch-CSS*/
div.gb              { margin: 0px 50px 20px 50px; padding: 0px; border: 1px solid #ffffff; line-height: 19px; }
div.gb-author       { margin: 0px; padding: 1px 10px 1px 10px; border-bottom: 1px solid #ffffff; background: #0066CC; }
p.gb-author-left    { margin: 0px; float: left; }
p.gb-author-right   { margin: 0px; text-align: right; }
div.gb-entry        { margin: 10px; padding: 0px; }
p.gb-browse         { padding: 0px 50px 0px 50px; text-align: right; font-weight: bold; }
p.gb-admin-buttons  { margin: 5px 0px 0px 0px; text-align: right; }
.caution            { color: black; font-weight: bold; }
.small              { font-size: 11px; line-height:16px; }
.comment            { margin: 10px 0px 0px 0px; color: #808080; font-style: italic; }
.comments-th       { padding: 5px; border: 1px solid #aaa; font-weight: bold; vertical-align: top; text-align: left; }
.comments-td        { padding: 5px; border: 1px solid #aaa; vertical-align: top; text-align: left; }
.submit-td          { padding: 5px; vertical-align: top; }


/*Lightbox 2.04 CSS*/
#lightbox{   position: absolute;   left: 0; width: 100%; z-index: 100; text-align: center; line-height: 0;}
#lightbox img{ width: auto; height: auto;}
#lightbox a img{ border: none; }

#outerImageContainer{ position: relative; background-color: #fff; width: 250px; height: 250px; margin: 0 auto; }
#imageContainer{ padding: 10px; }

#loading{ position: absolute; top: 40%; left: 0%; height: 25%; width: 100%; text-align: center; line-height: 0; }
#hoverNav{ position: absolute; top: 0; left: 0; height: 100%; width: 100%; z-index: 10; }
#imageContainer>#hoverNav{ left: 0;}
#hoverNav a{ outline: none;}

#prevLink, #nextLink{ width: 49%; height: 100%; background-image: url(data:image/gif;base64,AAAA); /* Trick IE into showing hover */ display: block; }
#prevLink { left: 0; float: left;}
#nextLink { right: 0; float: right;}
#prevLink:hover, #prevLink:visited:hover { background: url(../images/prevlabel.gif) left 15% no-repeat; }
#nextLink:hover, #nextLink:visited:hover { background: url(../images/nextlabel.gif) right 15% no-repeat; }

#imageDataContainer{ font: 10px Verdana, Helvetica, sans-serif; background-color: #fff; margin: 0 auto; line-height: 1.4em; overflow: auto; width: 100%   ; }

#imageData{   padding:0 10px; color: #666; }
#imageData #imageDetails{ width: 70%; float: left; text-align: left; }   
#imageData #caption{ font-weight: bold;   }
#imageData #numberDisplay{ display: block; clear: left; padding-bottom: 1.0em;   }         
#imageData #bottomNavClose{ width: 66px; float: right;  padding-bottom: 0.7em; outline: none;}       

#overlay{ position: absolute; top: 0; left: 0; z-index: 90; width: 100%; height: 500px; background-color: #000; }


Vielen Dank für eure Tipps und Anregungen!

Gruss buemplizer
buemplizer
neu hier
 
Beiträge: 12
Registriert: 22.08.2009, 18:10

Re: Problem mit overflow, Navigation verschoben...

Beitragvon sejuma » 22.08.2009, 18:30

Beim ersten Problem hat vermutlich der White-Space-Bug des IE zugeschlagen.
Im IE 6 dürfte eine solche Navi ohne "Spezialmittel" vermutlich überhaupt nicht funktionieren.
Sieh dir hierzu mal einige Erläuterungen aus diesen Anleitungen an:
http://www.ohne-css.gehts-gar.net/0066.php
http://www.ohne-css.gehts-gar.net/0067.php

Das zweite Problem kann ich anhand des Links nicht nachvollziehen.
Bild
sejuma
Vielposter
 
Beiträge: 788
Registriert: 15.07.2009, 17:46

Re: Problem mit overflow, Navigation verschoben...

Beitragvon buemplizer » 23.08.2009, 12:44

hallo

danke für die schnelle antwort!
die navi ist von hier, da scheint alles zu funktionieren:
http://www.sohtanaka.com/web-design/horizontal-sub-nav-with-css-jquery/
schaue mir aber deine links trotzdem gerne mal an :)

hier noch der korrekte link zum overflow-problem:
http://test.pfarreimusik.ch/ueber_uns/besetzungsliste.php

danke für die unterstützung! :-D

gruss
buemplizer
buemplizer
neu hier
 
Beiträge: 12
Registriert: 22.08.2009, 18:10

Re: Problem mit overflow, Navigation verschoben...

Beitragvon buemplizer » 27.08.2009, 17:21

ok, in einem anderen forum habe ich jetzt bereits erfahren, dass das mit dem overflow wahrscheinlich mit dem float, bzw. clear zu tun hat. aber trotz einigen versuchen bin ich nicht auf die lösung gekommen. was oder wo muss ich clearen, damit das gut kommt? :?:

habs trotz einigen stunden an lesen und ausprobieren nicht hingekriegt... :coffey:
buemplizer
neu hier
 
Beiträge: 12
Registriert: 22.08.2009, 18:10

Re: Problem mit overflow, Navigation verschoben...

Beitragvon buemplizer » 31.08.2009, 18:12

das problem mit dem overflow konnte ich dank einem hinweis aus einem anderen forum lösen:

"leeres" div-tag mit dem style clear: both; nach dem #rechtespalte einfügen, schon funzt alles wie es soll :lol:

bleibt noch das problem mit dem ie und der navi...

wäre super, wenn mir auch hier jemand einen wertvollen tip geben könnte :idea:
buemplizer
neu hier
 
Beiträge: 12
Registriert: 22.08.2009, 18:10

Re: Problem mit overflow, Navigation verschoben...

Beitragvon buemplizer » 03.09.2009, 19:44

OK, auch die Navigation sieht jetzt gut aus... das div habe ich einfach mit

Code: Alles auswählen
max-height: 0px;


versehen, das wars. ob das so irgendwie css-konform ist, weiss ich allerdings nicht :planlos

was jetzt noch bleibt, die subnavi ist im ie nicht "erreichbar", sprich kann nicht geklickt werden, weil sie beim verlassen (mit der maus) der hauptnavi wieder verschwindet (die subnavi).

weiss wer, woran das liegen könnte? habe mal etwas von einem white-space bug gehört, aber das hat irgendwie nicht gefruchtet...
buemplizer
neu hier
 
Beiträge: 12
Registriert: 22.08.2009, 18:10

Re: Problem mit overflow, Navigation verschoben...

Beitragvon buemplizer » 08.09.2009, 11:46

Damit ich nicht extra einen neuen Thread eröffnen muss, komme ich noch einmal hier damit...

Es ist immer noch das selbe Thema: Die Navi sieht im IE jetzt zwar gut aus, aber ich habe immer noch das Problem, dass ich die Subnav nicht erreiche... :planlos :?

Deshalb noch einmal die Frage an euch: Woran könnte das liegen? Bin wirklich dankbar um Hinweise, weil die Seite abgesehen von diesem Manko sonst eigentlich fertig ist...
buemplizer
neu hier
 
Beiträge: 12
Registriert: 22.08.2009, 18:10

Re: Problem mit overflow, Navigation verschoben...

Beitragvon Laus » 08.09.2009, 13:13

Hallo

Ich denke mal das liegt an der Größenänderung der Schrift beim Hover, dadurch ändern sich nämlich die Abstände. Der IE kommt damit eventuell nicht zurecht. Versuche es mal mit conditional comments für den IE oder lass mal probeweise die Änderung der Schriftgröße weg. Wie sieht es dann aus?

Gruß Xaver
Lachen ist kein schlechter Anfang und bei weitem das beste Ende.
(Oscar Wilde)
Benutzeravatar
Laus
Moderator
 
Beiträge: 1229
Registriert: 25.02.2006, 00:30
Wohnort: Furth im Wald

Re: Problem mit overflow, Navigation verschoben...

Beitragvon buemplizer » 08.09.2009, 13:35

Hallo Xaver

Danke für Deinen Hinweis. Das ist es wahrscheinlich nicht, bringt mich aber auf eine andere Idee. Die Schrift bleibt nämlich gleich gross, sie wird lediglich fett.

Aber etwas Anderes: Der bottom-border von 3px beim hover könnte es sein, was den IE aus der Bahn wirft. Ich werde heute Abend gleich einmal versuchen, einen conditional comment zu schreiben, der diesen bottom-border für den IE weglässt...
buemplizer
neu hier
 
Beiträge: 12
Registriert: 22.08.2009, 18:10


Moderatoren: Laus, Moderatoren

Ähnliche Beiträge zu "Problem mit overflow, Navigation verschoben..."

Zurück zu: CSS für Anfänger

Wer ist online?

Mitglieder in diesem Forum: 0 Mitglieder und 3 Gäste