Wie setze ich dieses Layout um?

Hi!

Weiß nicht, ob es das ist, aber Du platzierst die Submenü-Listen zwischen den li und nicht darin:
HTML:
<ul>
<li><a href="#">Studiengang</a>
    <ul>
    <li><a href="#">Überblick</a></li>
    <li><a href="#">Philosophie</a></li>
    <li><a href="#">Ziele</a></li>
    <li><a href="#">Inhalte</a></li>
    <li><a href="#">Projekte</a></li>
    </ul>
</li>
<li><a href="#">Bachelor</a></li>
...
</ul>

Liebe Grüße,
Mark.
 
Hi,

zunächst solltest du das Submenü regelkonform verschachteln, denn das ul-Element darf als Nachfahre lediglich das li-Element enthalten, aber wiederum selbst ein Nachkomme des li-Elements sein - also:

Code:
<ul>
    <li><a href="#">Studiengang</a>
           <ul>
               <li><a href="#">Überblick</a></li>
               <li><a href="#">Philosophie</a></li>
               <li><a href="#">Ziele</a></li>
               <li><a href="#">Inhalte</a></li>
               <li><a href="#">Projekte</a></li>
           </ul>
    </li><!-- Ende "Studiengang" -->
    <li><a href="#">Bachelor</a></li>
    <li><a href="#">Master</a></li>
    ...
</ul>
Ansonsten lautet hier die Fehlermeldung des w3c-Validators:
Line 31, Column 3: document type does not allow element "UL" here; assuming missing "LI" start-tag
Im zweiten Schritt wird für die Links der zweiten Menüebene das verwendete Hintergrundbild aus der ersten Menüebene "deaktiviert" - also:

Code:
#Huelle-Navi ul ul li a {
                                font-weight: bold;
                                font-size: 12px;
                                padding-top: 5px;
                                text-align: right;
                                border-bottom: 1px dashed #667e8b;

                                margin-left:70px;

                                color: #FFFFFF;
                                display: block;
                                background: none; /* "transparent" wäre auch möglich */
                                }

#Huelle-Navi ul ul li a:hover {
                                font-weight: bold;
                                font-size: 12px;
                                padding-top: 5px;
                                text-align: right;
                                border-bottom: 1px dashed #667e8b;

                                margin-left:70px;

                                text-decoration: none;
                                color: #8cca42;
                                background: none; /* "transparent" wäre auch möglich */
                                }
Wenn du, wie von dir angewendet, die background-Deklaration lediglich auskommentierst, besitzt die entsprechende Regel aus den beiden vorangegangen Selektoren (#Huelle-Navi ul li a, #Huelle-Navi ul li a:hover) hier ihre Gültigkeit.

Btw, list-style:none auf das a-Element anzuwenden, ergibt keinen Sinn, da dieses Element keinen festen Bestandteil einer Liste darstellt, sondern einen Hyperlink auszeichnet, der sich in einer Liste einbetten lässt, und somit diese CSS-Formatierung absolut wirkungslos bleibt.

Oder hast du schon mal versucht, das a-Element auf diese Weise zu gestalten?

Code:
a { list-style:circle; }
Code:
<a href="#">ein Link</a>

Im letzten Schritt wird für die Listenelemente der jeweiligen Menüebene das gewünschte Listenzeichen definiert:

Code:
#Huelle-Navi ul li { 
        list-style:none; /* kein Listenzeichen für obere Menüebene */
        }
#Huelle-Navi ul ul li  { 
        list-style:square; /* quadratisches Listenzeichen für zweite Menüebene */
        }
Achtung: Da zu Beginn des Stylesheets mit dem Universalselektor * für alle im HTML-Dokument enthaltenden Elemente, und folglich auch für die ul-Listenelemente, ihre Polsterungseigenschaften auf null zurückgesetzt werden, zeigen in diesem Fall die standardkonformen Browser das Listenzeichen der zweiten Ebene zunächst nicht an. Daher ist für das ul- oder li-Element dieser Ebene ein linker Außenabstand erforderlich, damit das Listenzeichen dargestellt wird.

Zum Schluß noch eine grundsätzliche Anmerkung: Wenn diverse Regeln im Stylesheet nicht benötigt werden, und du sie zunächst nur auskommentieren (deaktivieren) möchtest, bevor sie endgültig aus dem Stylesheet genommen werden, dann bitte nicht nur den Selektor, sondern auch seine enthaltende Regelmenge in den Kommentar (/* */) packen, denn ansonsten validiert der CSS-Code nicht, wie die sieben Fehlermeldungen der Ergebnisse des CSS-Validators http://www.sky-divezone.de/Other/WIKO/styles-neu.css (CSS level 2.1) dokumentieren.

mfg Maik
 
Danke, das hat geklappt :)

http://www.sky-divezone.de/Other/WIKO/index2.html

Allerdings kleben im IE7 die Quadrate direkt an den Links. Im FF haben sie alle den gleichen Abstand nach links.

Im IE6 scheint der Abstand zwischen den einzelnen Menüpunkten größer geworden zu sein (siehe Screenshot).

Ich habe nun eine Klasse "menu_current" eingefügt, die einen aktiven Menüpunkt kennzeichnen soll. Allerdings zeigt dieser keine Wirkung.

HTML:
#Huelle-Navi {
		width: 220px;
		height: auto;
		background: #3e4d55;
		margin-left: 20px;
		float: left;
		display:inline; /* The IE5/6 Doubled Float-Margin Bug */
		color: #FFFFFF;
		padding-bottom: 32768px; /*equal hight columns*/
		margin-bottom: -32768px;
		}

#Huelle-Navi h1 {
			margin-top: 30px;
			margin-left: 50px;
			margin-bottom: 20px;
			font-weight: bold;			
			font-size: 17px;
			text-transform: uppercase;
			color: #8cca42;
			}


#Huelle-Navi ul li a {
			margin-left: 50px;
			margin-right: 20px;			
			font-weight: bold;
			font-size: 14px;			
			padding-top: 10px;
			text-align: right;
			border-bottom: 1px dashed #667e8b;
			text-decoration: none;
			
			color: #FFFFFF;
			display: block;
			background: url(Bilder/Liste.gif) no-repeat left center;		
			}

#Huelle-Navi ul li a .menu_current {
					
					color: #8cca42;					
					}

#Huelle-Navi ul li a:hover {
				margin-left: 50px;
				margin-right: 20px;			
				font-weight: bold;
				font-size: 14px;			
				padding-top: 10px;
				text-align: right;
				border-bottom: 1px dashed #667e8b;				
				text-decoration: none;
				color: #8cca42;
				background: url(Bilder/Liste-over.gif) no-repeat left center;		
				}


#Huelle-Navi ul ul li a {
				font-weight: bold;
				font-size: 12px;			
				padding-top: 5px;
				text-align: right;
				border-bottom: none;
				margin-left: 0px;
				text-decoration: none;
				color: #FFFFFF;
				display: block;
				background: none;			
				}

#Huelle-Navi ul ul li a:hover {
				font-weight: bold;
				font-size: 12px;			
				padding-top: 5px;
				text-align: right;
				border-bottom: none;
				margin-left: 0px;
				text-decoration: none;
				color: #8cca42;
				background: none;			
				}

#Huelle-Navi ul li { 
        			list-style: none; /* kein Listenzeichen für obere Menüebene --> für ein a-Tag kann kein Listenzeichen definiert werden */
       				}
#Huelle-Navi ul ul li { 
        			list-style: square; /* quadratisches Listenzeichen für zweite Menüebene --> für ein a-Tag kann kein Listenzeichen definiert werden */
				margin-left: 80px;
				}

HTML:
<div id="Huelle-Navi">
<h1>Navigation</h1>
<ul>
  <li><a href="#" class="menu_current">Studiengang</a>
    <ul>
      <li><a href="#">Überblick</a></li>
      <li><a href="#">Philosophie</a></li>
      <li><a href="#">Ziele</a></li>
      <li><a href="#">Inhalte</a></li>
      <li><a href="#">Projekte</a></li>
    </ul>
  </li>
  <li><a href="#">Bachelor</a></li>
  <li><a href="#">Master</a></li>
  <li><a href="#">Praktikum</a></li>
  <li><a href="#">FHTW</a></li>
  <li><a href="#">WiKo Family</a></li>
  <li><a href="#">Downloads</a></li>
  <li><a href="#">Kontakt</a></li>
  <li><a href="#">Links</a></li>
  <li><a href="#">Hilfe</a></li>
</ul>
</div>
 

Anhänge

  • menu.jpg
    menu.jpg
    77,6 KB · Aufrufe: 8
Hi,

so sollte die Position des Listenzeichens im FF und IE übereinstimmen (es kommt mir gerade so vor, wie wenn eine Sojus-Kapsel oder das Spaceshuttle in Millimeterschritten an die ISS andocken soll :suspekt:).

Code:
#Huelle-Navi ul ul  {
                                list-style-position:outside;
                                padding-left:80px;
                                }
#Huelle-Navi ul ul li a {
                                font-weight: bold;
                                font-size: 12px;
                                padding-top: 5px;
                                text-align: right;
                                border-bottom: none;
                                margin-left: 0px;
                                text-decoration: none;
                                color: #FFFFFF;
                                display: block;
                                width:120px;
                                background: none;
                                }

#Huelle-Navi ul ul li a:hover {
                                font-weight: bold;
                                font-size: 12px;
                                padding-top: 5px;
                                text-align: right;
                                border-bottom: none;
                                margin-left: 0px;
                                text-decoration: none;
                                color: #8cca42;
                                background: none;
                                }

#Huelle-Navi ul li {
                                list-style: none; /* kein Listenzeichen für obere Menüebene  */
                                }
#Huelle-Navi ul ul li {
                                list-style: square; /* quadratisches Listenzeichen für zweite Menüebene  */
                                }
Dass die Klasse .menu_current bei dir keine Wirkung zeigt, liegt einfach an dem Leerzeichen zwischen dem Elementtyp und dem Klassenname innerhalb des Selektors, was die Browser in dieser Schreibweise als einen "Selektor für Nachfahren" behandeln, der in dem Markup aber überhaupt nicht existiert - ergo wenn das a-Element diesen Klassenbezeichner erhält, wird beides zusammengeschrieben:

Code:
#Huelle-Navi ul li a.menu_current {
                                        color: #8cca42;
                                        }
mfg Maik
 
Da ich mich vorhin irgendwie schwer getan habe, das bestehende Stylesheet browserübergreifend "auf die Kette zu bekommen", und von meiner abgelieferten Arbeit nicht 100%ig überzeugt war, hab ich mir nach dem letzten Post erstmal einen Kaffee aufgesetzt, und das Modell dann in aller Ruhe bei null beginnend neu konstruiert.

Mit diesem Resultat kann ich nun aus den drei folgenden Gründen eindeutig besser leben:

  1. Das System funktioniert nun ohne Abstriche im FF (2 + 3) und IE (6 + 7).
  2. Der CSS-Code hat eine Schlankheitskur erfahren, insbesondere was die Formatierung der Links und ihrer :hover-Pseudoklassen betrifft.
  3. Die Funktionsweise des Konzepts lässt sich (meines Erachtens) nun direkter überblicken bzw. nachvollziehen, da ich z.B. die ehemaligen Außenabstände der Links auf die beiden ul-Listenelemente übertragen habe, was den Browsern scheinbar besser bekommt.
Code:
* {
margin:0;
padding:0;
}

#Huelle-Navi {
width:220px;
height:auto;
margin-left:20px;
float:left;
display:inline;
background:#3e4d55;
color:#fff;
padding-bottom:32768px; /*equal hight columns*/
margin-bottom:-32768px;
}

#Huelle-Navi ul {
margin:0 20px 0 50px;
list-style:none;
}

#Huelle-Navi ul ul {
margin:0 0 0 20px;
list-style:square;
}

#Huelle-Navi a {
display:block;
text-decoration:none;
text-align:right;
font-weight:bold;
color:#fff;
}

#Huelle-Navi a.menu_current {
color:#8cca42;
}

#Huelle-Navi ul a {
width:150px;
padding-top:10px;
background:url(Bilder/Liste.gif) no-repeat left center;
border-bottom:1px dashed #667e8b;
font-size:14px;
}

#Huelle-Navi ul a:hover {
color:#8cca42;
background:url(Bilder/Liste-over.gif) no-repeat left center;
}

#Huelle-Navi ul ul a {
width:130px;
padding-top:5px;
background:none;
border-bottom:none;
font-size:12px;
}

#Huelle-Navi ul ul a:hover {
color:#8cca42;
background:none;
}
mfg Maik
 
Wow, vielen Dank! Das ist nicht selbstverständlich, dass du dir so viel Arbeit machst. Aber ich weiß das sehr zu schätzen und du hast mir enorm weitergeholfen. Außerdem lernt man dann für die Zukunft dazu :)

Habe noch einen "Top-Link" in den Footer eingebaut, ansonsten wars das eigentlich.

Achso, im FF2 scheint oben das Suchfeld über den rand hinauszuragen. Kann das sein?

http://www.sky-divezone.de/Other/WIKO/
 
Das kann ich nicht bestätigen:

ff2.jpg ff3.jpg

(links: FF2 - rechts: FF3)

Keine Ursache wegen meines "Extra"-Engagements :)

Wenn ich mit etwas nicht hundertprozentig zufrieden oder davon überzeugt bin, kann ich das so auch nicht stehen lassen, zumal mich dann der Ehrgeiz antreibt, die Aufgaben-/Problemstellung endgültig / abschliessend zu lösen. Und da ich am Freitagnachmittag schon ganz gediegen ins Wochenende gleite, hab ich auch 10 oder 15 Minuten übrig, mich dem Problem ein weiteres Mal anzunehmen, und eine akzeptable Lösung zu erarbeiten. :)

Halbe Sachen gibt's bei mir halt nicht ;-)

mfg Maik
 
So, nun folgt der zweite Schritt, nämlich die Integration des HTML-Templates ins CMS Websitebaker.

Das ging an sich auch recht flott, allerdings ist das Design im IE7 total zerrissen (das Menü).
Leider habe ich noch nicht die Zugangsdaten zu unserem Uniserver, damit ich das CMS hochladen kann, daher teste ich es momentan lokal. Ich hoffe, man kann trotzdem den Fehler erkennen.

Hier nochmal das Stylesheet, daran hat sich bis auf zwei neue menu_current-Klassen nichts geändert:

HTML:
/* -------------------------------------------------------------------------------------------------------------------> allgemein */
* { 				/*setzt global alle Abstände auf 0 - an gewünschter Stelle können Abstände manuell eingetragen werden*/
	margin: 0; 
	padding: 0; 
	}

html { 
     height: 100%;   /*nötig, um ein DIV auf 100% Höhe zu bringen */
	 } 

Body {
/* -------------------------------------------------------------------------------------> Farben */
      background: #eaf4da;      

/* -------------------------------------------------------------------------------------> Schrift */
     font-family:  Arial;
     font-size:    12px;	
    
/* -------------------------------------------------------------------------------------> Abstände */
     margin:      0px;
     height:      100%; /*nötig, um ein DIV auf 100% Höhe zu bringen */
     }

/* -------------------------------------------------------------------------------------> Listen */
/*li {
   list-style-image: url(Bilder/Liste.png);
   margin-left:25px;
   margin-right:10px;
   line-height: 13px;
   }*/

/* -------------------------------------------------------------------------------------> Formulare */
input {    
		font-family: Arial;                
           	font-size: 13px;
		font-weight: bold;
	   	color: #787878;                
           	background-color: #FFFFFF;
           	border-color: #8cca42;
           	border-style: solid;           	
		}	
			        
Textarea {
           font-family:         Arial; 
           font-size:           12px;               
           color:               #2969AD;                
           background-color:    #FFFFFF;
           border-color:        #FFFFFF;
           border-style:    solid;    	 
           }

/* -------------------------------------------------------------------------------------------------------------------> Huelle-gesamt */
#Huelle-gesamt {  
        position:    relative;
        margin-right: auto;
        margin-left: auto; 
        margin-top: 40px;
	width:       820px;
	height:      auto;   
        background: #FFFFFF;      
	}	
	   
/* -------------------------------------------------------------------------------------------------------------------> Rand oben */
#Rand-oben { 
	   width:           820px;
	   height:          19px;
	   background:      url(Bilder/Schatten-oben.gif);
           }	

/* -------------------------------------------------------------------------------------------------------------------> Huelle-klein */
#Huelle-klein {
		width: 820px;
		height: auto;
		background: url(Bilder/Schatten-mitte.gif) repeat-y;
		overflow: hidden;
		}

/* -------------------------------------------------------------------------------------------------------------------> Sub-Navi */
#Sub-Navi {
		width: 600px;
		height: 40px;
		background: #3e4d55;
		margin-left: 20px;
		float:left;
		display:inline; /* The IE5/6 Doubled Float-Margin Bug */
		color: #FFFFFF;
		}

#Sub-Navi-Links {
			height: 100%;
			margin-left: 50px;
			margin-top: 10px;
			}				 

#Sub-Navi ul li {
			margin-right: 15px;
			display: inline;
			font-weight: bold;
			font-size: 13px;
			}

#Sub-Navi a {
		color: #FFFFFF;
		text-decoration: none;
		}

#Sub-Navi a:hover {
			text-decoration: none;
			color: #8cca42;
			}

#Sub-Navi a.menu_current {
				color: #8cca42;
				}

/* -------------------------------------------------------------------------------------------------------------------> Login */
#Suche {
		width: 180px;
		height: 40px;
		background: #3e4d55;
		margin-right: 20px;
		float:right;
		display:inline; /* The IE5/6 Doubled Float-Margin Bug */
		color: #FFFFFF;	
		}

#Suche-Feld {
			height: 100%;
			margin-top: 10px;
			padding-left: 10px;
			}

#Suche ul li {
			display: inline;
			font-weight: bold;
			font-size: 13px;
			margin-right: 20px;
			}

#Suche a {
		color: #FFFFFF;
		}

#Suche a:hover {
			text-decoration: none;
			color: #8cca42;
			}

#Suche input {    
         	font-family: Arial;                
           	font-size: 13px;
		font-weight: bold;
	   	color: #787878;                
           	background-color: #FFFFFF;
           	border-color: #8cca42;
           	border-style: solid;           	
		}

/* -------------------------------------------------------------------------------------------------------------------> Header-klein */
#Header-klein {
		width: 30px;
		height: 200px;
		background: #3e4d55;
		margin-left: 20px;
		float:left;
		display:inline; /* The IE5/6 Doubled Float-Margin Bug */
		}

/* -------------------------------------------------------------------------------------------------------------------> Header */
#Header {
		width: 740px;
                height: 180px;
                background: #FFFFFF url(Bilder/Header.jpg) no-repeat 10px 10px;
                margin-right: 10px;
                padding:10px;
                float:right;	
		display:inline; /* The IE5/6 Doubled Float-Margin Bug */	
		}

/* -------------------------------------------------------------------------------------------------------------------> Navi */
#Huelle-Navi {
		width: 220px;
		height: auto;
		margin-left: 20px;
		float: left;
		display: inline;	/* The IE5/6 Doubled Float-Margin Bug */
		background: #3e4d55;
		color: #fff;
		padding-bottom: 32768px; /*equal hight columns*/
		margin-bottom: -32768px;
		}

#Huelle-Navi ul {
			margin: 0 20px 0 50px;
			list-style: none;
			}

#Huelle-Navi ul ul {
			margin: 0 0 0 20px;
			list-style: square;
			}

#Huelle-Navi a {
			display: block;
			text-decoration: none;
			text-align: right;
			font-weight: bold;
			color: #fff;
			}

/*#Huelle-Navi a.menu_current {
				color: #8cca42;
				background: url(Bilder/Liste-over.gif) no-repeat left center;
				}*/

#Huelle-Navi ul a {
			width: 150px;
			padding-top: 10px;
			background: url(Bilder/Liste.gif) no-repeat left center;
			border-bottom: 1px dashed #667e8b;
			font-size: 14px;
			}

#Huelle-Navi ul a:hover {
				color: #8cca42;
				background: url(Bilder/Liste-over.gif) no-repeat left center;
				}

#Huelle-Navi ul a.menu_current {
				color: #8cca42;
				background: url(Bilder/Liste-over.gif) no-repeat left center;
				}

#Huelle-Navi ul ul a {
			width: 130px;
			padding-top: 5px;
			background: none;
			border-bottom: none;
			font-size: 12px;
			}

#Huelle-Navi ul ul a:hover {
				color: #8cca42;
				background: none;
				}


#Huelle-Navi ul ul a.menu_current {
					color: #8cca42;	
					background: none;				
					}
#Huelle-Navi h1 {
			margin-top: 30px;
			margin-left: 50px;
			margin-bottom: 20px;
			font-weight: bold;			
			font-size: 17px;
			text-transform: uppercase;
			color: #8cca42;
			}

/* -------------------------------------------------------------------------------------------------------------------> Content */
#Huelle-Content {
			width: 560px;
			height: auto;
			background: #FFFFFF;
			margin-right: 20px;
			float: right;
			display:inline; /* The IE5/6 Doubled Float-Margin Bug */			
			}

#Huelle-Content h1 {
			margin-top: 30px;
			margin-left: 20px;
			margin-right: 20px;
			margin-bottom: 5px;
			font-weight: bold;			
			font-size: 17px;
			text-transform: uppercase;
			color: #8cca42;
			border-bottom: 1px dashed #667e8b;
			}

#Huelle-Content h2 {
			margin-left: 20px;
			margin-bottom: 10px;
			font-weight: bold;			
			font-size: 12px;
			color: #8cca42;
			}

#Huelle-Content p {
			margin-left: 20px;
			margin-right: 20px;
			color: #787878;
			line-height:  1.3em;
    			word-spacing: 0.3em;
			}

#Huelle-Content a {
			color: #8cca42;
			font-weight: bold;
			text-decoration: underline;
			}

#Huelle-Content a:hover {
				color: #8cca42;
				font-weight: bold;
				text-decoration: none;
				}

/* -----------------------------------------------------------------------------------------------------------------> Divider */
#Divider {
		width: 780px;
		height: 10px;
		background: #FFFFFF;
		margin-right: 20px;
		margin-left: 20px;	
		}

/* -----------------------------------------------------------------------------------------------------------------> Abschluss */
#Abschluss {
		width: 820px;
		height: auto;
		background: url(Bilder/Schatten-mitte.gif) repeat-y;
		}

/* -----------------------------------------------------------------------------------------------------------------> Footer */
#Huelle-Footer {
			width: 780px;
			height: 30px;
			background: #3e4d55;
			margin-top: 0px;
			margin-right: 20px;
			margin-left: 20px;		
			}

#Huelle-Footer-Inhalt {
			height: 100%;
			padding-top: 7px;
			margin-left: 50px;
			color: #bdbdbd;	
			float: left;
			display:inline;
			}

#Huelle-Footer-Top {
			height: 100%;
			padding-top: 7px;
			text-align: right;
			margin-right: 20px;
			float: right;
			display: inline;
			color: #FFFFFF;			
			}

#Huelle-Footer-Top a {
			color: #bdbdbd;
			text-decoration: underline;
			}

#Huelle-Footer-Top a:hover {
				color: #bdbdbd;
				text-decoration: none;
				}

/* -------------------------------------------------------------------------------------------------------------------> Rand unten */
#Rand-unten { 
		width:           820px;
		height:          19px;
		background:      url(Bilder/Schatten-unten.gif);
		}

/* -------------------------------------------------------------------------------------------------------------------> clear - Float aufheben */

.clear { 
		clear: both; 
		}		  


	  
.Bilder {        
	    margin-right:  10px;
		margin-bottom: 10px;	
		border-style:  solid;
        border-width:  4px;
        border-color:  #FFFFFF;		
        }	
		  
.Bilder:hover {  
              border-style: solid;
              border-width: 4px;
              border-color: #8CC7FF;    
              }

Und hier der HTML-Code, der von WebsiteBaker generiert wird:

HTML:
<!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=utf-8" />
<link rel="stylesheet" type="text/css" href="http://localhost/wiko.fhtw-berlin.de/templates/wiko/styles.css">
<meta content="text/html; charset=ISO-8859-1" http-equiv="content-type"><title>Wirtschaftskommunikation an der FHTW Berlin - Studiengang</title>

<meta name="description" content="">
<meta name="keywords" content="">
</head>
<body>
<div id="Huelle-gesamt"><a name="Top"></a>
<div id="Rand-oben"></div>
<div id="Huelle-klein">
<div id="Sub-Navi">
<div id="Sub-Navi-Links">

<ul>
<li><span class="menu_default"><a href="http://localhost/wiko.fhtw-berlin.de/pages/home.php" target="_top"  class="menu_default"> Home </a></span>
</li>
<li><span class="menu_default"><a href="http://localhost/wiko.fhtw-berlin.de/pages/impressum.php" target="_top"  class="menu_default"> Impressum </a></span>
</li>
<li><span class="menu_default"><a href="http://localhost/wiko.fhtw-berlin.de/pages/sitemap.php" target="_top"  class="menu_default"> Sitemap </a></span>
</li>
</ul></div>
</div>
<div id="Suche">
<div id="Suche-Feld"><input value="Suche" type="text"></div>
</div>
<div class="clear"></div>
<div id="Header-klein"></div>
<div id="Header"></div>
<div class="clear"></div>
<div id="Huelle-Navi">
<h1>Navigation</h1>

<ul>
<li><span class="menu_current"><a href="http://localhost/wiko.fhtw-berlin.de" target="_top"  class="menu_current"> Studiengang </a></span>
<ul>
<li><span class="menu_default"><a href="http://localhost/wiko.fhtw-berlin.de/pages/studiengang/ueberblick.php" target="_top"  class="menu_default"> Überblick </a></span>
</li>
<li><span class="menu_default"><a href="http://localhost/wiko.fhtw-berlin.de/pages/studiengang/philosophie.php" target="_top"  class="menu_default"> Philosophie </a></span>
</li>
<li><span class="menu_default"><a href="http://localhost/wiko.fhtw-berlin.de/pages/studiengang/ziele.php" target="_top"  class="menu_default"> Ziele </a></span>
</li>
<li><span class="menu_default"><a href="http://localhost/wiko.fhtw-berlin.de/pages/studiengang/inhalte.php" target="_top"  class="menu_default"> Inhalte </a></span>
</li>
<li><span class="menu_default"><a href="http://localhost/wiko.fhtw-berlin.de/pages/studiengang/projekte.php" target="_top"  class="menu_default"> Projekte </a></span>
</li>
</ul>
</li>
<li><span class="menu_default"><a href="http://localhost/wiko.fhtw-berlin.de/pages/bachelor.php" target="_top"  class="menu_default"> Bachelor </a></span>
</li>
<li><span class="menu_default"><a href="http://localhost/wiko.fhtw-berlin.de/pages/master.php" target="_top"  class="menu_default"> Master </a></span>
</li>
<li><span class="menu_default"><a href="http://localhost/wiko.fhtw-berlin.de/pages/praktikum.php" target="_top"  class="menu_default"> Praktikum </a></span>
</li>
<li><span class="menu_default"><a href="http://localhost/wiko.fhtw-berlin.de/pages/fhtw.php" target="_top"  class="menu_default"> FHTW </a></span>
</li>
<li><span class="menu_default"><a href="http://localhost/wiko.fhtw-berlin.de/pages/wiko-family.php" target="_top"  class="menu_default"> WiKo Family </a></span>
</li>
<li><span class="menu_default"><a href="http://localhost/wiko.fhtw-berlin.de/pages/downloads.php" target="_top"  class="menu_default"> Downloads </a></span>
</li>
<li><span class="menu_default"><a href="http://localhost/wiko.fhtw-berlin.de/pages/kontakt.php" target="_top"  class="menu_default"> Kontakt </a></span>
</li>
<li><span class="menu_default"><a href="http://localhost/wiko.fhtw-berlin.de/pages/links.php" target="_top"  class="menu_default"> Links </a></span>
</li>
<li><span class="menu_default"><a href="http://localhost/wiko.fhtw-berlin.de/pages/hilfe.php" target="_top"  class="menu_default"> Hilfe </a></span>
</li>
</ul></div>
<div id="Huelle-Content">
<a id="wb_section_2" name="wb_section_2"></a><h1>Verschiebung Sprechstunde</h1>
<h2>18.10.2008</h2>
<p>Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.</p>
<p><a href="file:///C:/Users/Christian/Meine%20Dateien/Homepage/wiko.fhtw-berlin.de/index.html#">weiterlesen</a></p>
<h1>Herzlich Willkommen</h1>
<h2>23.10.2008</h2>
<p>Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem.</p>
<p>Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed</p>
<p>invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam.</p>
<p><a href="file:///C:/Users/Christian/Meine%20Dateien/Homepage/wiko.fhtw-berlin.de/index.html#">weiterlesen</a></p></div>
<div class="clear"></div>
</div>
<div id="Abschluss">
<div id="Divider"></div>
<div id="Huelle-Footer">
<div id="Huelle-Footer-Inhalt">Copyright 2008 | Super-Team with Prof. Dr. Hase
</div>
<div id="Huelle-Footer-Top"><a href="#Top">nach
oben</a></div>
</div>
</div>
<div id="Rand-unten"></div>
</div>
</body></html>


Ich schätze, dir Ursache ist bei den "spans" zu suchen?
 

Anhänge

  • menü.jpg
    menü.jpg
    92,6 KB · Aufrufe: 13
Gut, das scheint nun geklappt zu haben. Jedenfalls sieht bei mir das Menü im IE7 und FF3 gleich aus.

Allerdings tue ich mich schwer mit der richtigen Vergabe der menu-current und menu-parent-Klassen.

Das sind die zur Verfügung stehenden Klassen:

menu-top Nur der erste Menüpunkt
menu-parent Jeder Hauptmenüpunkt.
menu-current Nur der Menüpunkt der aktuellen Seite.
menu-sibling Alle "Geschwister" der aktuellen Seite.
menu-child Jedes Untermenü der aktuellen Seite.
menu-expand Jedes Menü das Untermenüs hat.
menu-first Der erste Punkt eines jeden Menüs oder Untermenüs.
menu-last Der letzte Punkt eines jeden Menüs oder Untermenüs.

Wenn der Hauptmenüpunkt angeklickt ist, soll er auch als aktiv (menu-current) dargestellt werden (das scheint ja momentan auch zu klappen). Wenn nun ein Unterpunkt angeklickt wird, soll dieser Unterpunkt UND der Hauptmenüpunkt als aktiv dargestellt werden (das scheint ja auch zu klappen).
Aber unangeklickt werden die Untermenüpunkte falsch dargestellt (siehe Bild 1, dort ist nur der Hauptmenüpunkt angeklickt).
Fahre ich mit der Maus über die Unterpunkte, verschwindet der Pfeil, sonst nichts (also scheint das a:hover auch zu funktionieren). Wird der Link angeklickt, genau das gleiche (also scheint auch das menu-current für die Untermenüs zu funktionieren).
Aber das a sieht falsch aus, denn die Links sollten weiß und ohne background angezeigt werden. Das kriege ich einfach nicht hin.

Hier der von WebsiteBaker generierte Code für den angeklickten Unterpunkt "Überblick):

HTML:
<!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=utf-8" />
<link rel="stylesheet" type="text/css" href="http://localhost/wiko.fhtw-berlin.de/templates/wiko/styles.css">
<meta content="text/html; charset=ISO-8859-1" http-equiv="content-type"><title>Wirtschaftskommunikation an der FHTW Berlin - Überblick</title>

<meta name="description" content="">
<meta name="keywords" content="">
</head>
<body>
<div id="Huelle-gesamt"><a name="Top"></a>
<div id="Rand-oben"></div>
<div id="Huelle-klein">
<div id="Sub-Navi">
<div id="Sub-Navi-Links">
<ul class="menu-top"><li class="menu-first"><a href="http://localhost/wiko.fhtw-berlin.de/pages/home.php" target="_top">Home</a></li><li class=""><a href="http://localhost/wiko.fhtw-berlin.de/pages/impressum.php" target="_top">Impressum</a></li><li class="menu-last"><a href="http://localhost/wiko.fhtw-berlin.de/pages/sitemap.php" target="_top">Sitemap</a></li></ul></div>

</div>
<div id="Suche">
<div id="Suche-Feld">
<form name="search" action="http://localhost/wiko.fhtw-berlin.de/search/index.php" method="get">
    <input type="text" name="string" class="search_string" />
    <input type="submit" name="submit" value="Suche" />
  </form>

</div>
</div>
<div class="clear"></div>
<div id="Header-klein"></div>
<div id="Header"></div>
<div class="clear"></div>

<div id="Huelle-Navi">
<h1>Navigation</h1>
<ul class="menu-top"><li class="menu-expand menu-parent menu-first"><a href="http://localhost/wiko.fhtw-berlin.de" target="_top">Studiengang</a><ul class=""><li class="menu-current menu-first"><a href="http://localhost/wiko.fhtw-berlin.de/pages/studiengang/ueberblick.php" target="_top">Überblick</a></li><li class="menu-sibling"><a href="http://localhost/wiko.fhtw-berlin.de/pages/studiengang/philosophie.php" target="_top">Philosophie</a></li><li class="menu-sibling"><a href="http://localhost/wiko.fhtw-berlin.de/pages/studiengang/ziele.php" target="_top">Ziele</a></li><li class="menu-sibling"><a href="http://localhost/wiko.fhtw-berlin.de/pages/studiengang/inhalte.php" target="_top">Inhalte</a></li><li class="menu-sibling menu-last"><a href="http://localhost/wiko.fhtw-berlin.de/pages/studiengang/projekte.php" target="_top">Projekte</a></li></ul></li><li class=""><a href="http://localhost/wiko.fhtw-berlin.de/pages/bachelor.php" target="_top">Bachelor</a></li><li class=""><a href="http://localhost/wiko.fhtw-berlin.de/pages/master.php" target="_top">Master</a></li><li class=""><a href="http://localhost/wiko.fhtw-berlin.de/pages/praktikum.php" target="_top">Praktikum</a></li><li class=""><a href="http://localhost/wiko.fhtw-berlin.de/pages/fhtw.php" target="_top">FHTW</a></li><li class=""><a href="http://localhost/wiko.fhtw-berlin.de/pages/wiko-family.php" target="_top">WiKo Family</a></li><li class=""><a href="http://localhost/wiko.fhtw-berlin.de/pages/downloads.php" target="_top">Downloads</a></li><li class=""><a href="http://localhost/wiko.fhtw-berlin.de/pages/kontakt.php" target="_top">Kontakt</a></li><li class=""><a href="http://localhost/wiko.fhtw-berlin.de/pages/links.php" target="_top">Links</a></li><li class="menu-last"><a href="http://localhost/wiko.fhtw-berlin.de/pages/hilfe.php" target="_top">Hilfe</a></li></ul></div>

<div id="Huelle-Content">
<a id="wb_section_15" name="wb_section_15"></a></div>
<div class="clear"></div>
</div>
<div id="Abschluss">
<div id="Divider"></div>
<div id="Huelle-Footer">
<div id="Huelle-Footer-Inhalt">Copyright 2008 | Super-Team with Prof. Dr. Hase
</div>
<div id="Huelle-Footer-Top"><a href="#Top">nach
oben</a></div>
</div>
</div>
<div id="Rand-unten"></div>
</div>
</body></html>

Und hier das StyleSheet:

HTML:
/* -------------------------------------------------------------------------------------------------------------------> allgemein */
* { 				/*setzt global alle Abstände auf 0 - an gewünschter Stelle können Abstände manuell eingetragen werden*/
	margin: 0; 
	padding: 0; 
	}

html { 
     height: 100%;   /*nötig, um ein DIV auf 100% Höhe zu bringen */
	 } 

Body {
/* -------------------------------------------------------------------------------------> Farben */
      background: #eaf4da;      

/* -------------------------------------------------------------------------------------> Schrift */
     font-family:  Arial;
     font-size:    12px;	
    
/* -------------------------------------------------------------------------------------> Abstände */
     margin:      0px;
     height:      100%; /*nötig, um ein DIV auf 100% Höhe zu bringen */
     }

/* -------------------------------------------------------------------------------------> Listen */
/*li {
   list-style-image: url(Bilder/Liste.png);
   margin-left:25px;
   margin-right:10px;
   line-height: 13px;
   }*/

/* -------------------------------------------------------------------------------------> Formulare */
input {    
		font-family: Arial;                
           	font-size: 13px;
		font-weight: bold;
	   	color: #787878;                
           	background-color: #FFFFFF;
           	border-color: #8cca42;
           	border-style: solid;           	
		}	
			        
Textarea {
           font-family:         Arial; 
           font-size:           12px;               
           color:               #2969AD;                
           background-color:    #FFFFFF;
           border-color:        #FFFFFF;
           border-style:    solid;    	 
           }

/* -------------------------------------------------------------------------------------------------------------------> Huelle-gesamt */
#Huelle-gesamt {  
        position:    relative;
        margin-right: auto;
        margin-left: auto; 
        margin-top: 40px;
	width:       820px;
	height:      auto;   
        background: #FFFFFF;      
	}	
	   
/* -------------------------------------------------------------------------------------------------------------------> Rand oben */
#Rand-oben { 
	   width:           820px;
	   height:          19px;
	   background:      url(Bilder/Schatten-oben.gif);
           }	

/* -------------------------------------------------------------------------------------------------------------------> Huelle-klein */
#Huelle-klein {
		width: 820px;
		height: auto;
		background: url(Bilder/Schatten-mitte.gif) repeat-y;
		overflow: hidden;
		}

/* -------------------------------------------------------------------------------------------------------------------> Sub-Navi */
#Sub-Navi {
		width: 500px;
		height: 40px;
		background: #3e4d55;
		margin-left: 20px;
		float:left;
		display:inline; /* The IE5/6 Doubled Float-Margin Bug */
		color: #FFFFFF;
		}

#Sub-Navi-Links {
			height: 100%;
			margin-left: 50px;
			margin-top: 10px;
			}				 

#Sub-Navi ul li {
			margin-right: 15px;
			display: inline;
			font-weight: bold;
			font-size: 13px;
			}

#Sub-Navi a {
		color: #FFFFFF;
		text-decoration: none;
		}

#Sub-Navi a:hover {
			text-decoration: none;
			color: #8cca42;
			}

#Sub-Navi a.menu-current {
				color: #8cca42;
				}

/* -------------------------------------------------------------------------------------------------------------------> Login */
#Suche {
		width: 280px;
		height: 40px;
		background: #3e4d55;
		margin-right: 20px;
		float:right;
		display:inline; /* The IE5/6 Doubled Float-Margin Bug */
		color: #FFFFFF;	
		}

#Suche-Feld {
			height: 100%;
			margin-top: 10px;
			margin-left: 50px;
			}

#Suche input {    
         	font-family: Arial;                
           	font-size: 13px;
		font-weight: bold;
	   	color: #787878;                
           	background-color: #FFFFFF;
           	border-color: #8cca42;
           	border-style: solid;           	
		}

/* -------------------------------------------------------------------------------------------------------------------> Header-klein */
#Header-klein {
		width: 30px;
		height: 200px;
		background: #3e4d55;
		margin-left: 20px;
		float:left;
		display:inline; /* The IE5/6 Doubled Float-Margin Bug */
		}

/* -------------------------------------------------------------------------------------------------------------------> Header */
#Header {
		width: 740px;
                height: 180px;
                background: #FFFFFF url(Bilder/Header.jpg) no-repeat 10px 10px;
                margin-right: 10px;
                padding:10px;
                float:right;	
		display:inline; /* The IE5/6 Doubled Float-Margin Bug */	
		}

/* -------------------------------------------------------------------------------------------------------------------> Navi */
#Huelle-Navi {
		width: 220px;
		height: auto;
		margin-left: 20px;
		float: left;
		display: inline;	/* The IE5/6 Doubled Float-Margin Bug */
		background: #3e4d55;
		color: #fff;
		padding-bottom: 32768px; /*equal hight columns*/
		margin-bottom: -32768px;
		}

#Huelle-Navi ul {
			margin: 0 20px 0 50px;
			list-style: none;
			}

#Huelle-Navi ul ul {
			margin: 0 0 0 20px;
			list-style: square;
			}

#Huelle-Navi a {
			display: block;
			text-decoration: none;
			text-align: right;
			font-weight: bold;
			color: #fff;
			}

#Huelle-Navi ul a {
			width: 150px;
			padding-top: 10px;
			background: url(Bilder/Liste.gif) no-repeat left center;
			border-bottom: 1px dashed #667e8b;
			font-size: 14px;
			}

#Huelle-Navi ul a:hover {
				color: #8cca42;
				background: url(Bilder/Liste-over.gif) no-repeat left center;
				}

#Huelle-Navi ul li.menu-parent a {
					color: #8cca42;
					background: url(Bilder/Liste-over.gif) no-repeat left center;
					}

#Huelle-Navi ul li.menu-current a {
					color: #8cca42;
					background: url(Bilder/Liste-over.gif) no-repeat left center;
					}

#Huelle-Navi ul ul a {
			width: 130px;
			padding-top: 5px;
			background: none;
			border-bottom: none;
			font-size: 12px;
			}

#Huelle-Navi ul ul a:hover {
				color: #8cca42;
				background: none;
				}


#Huelle-Navi ul ul li.menu-current a {
					color: #8cca42;	
					background: none;				
					}

#Huelle-Navi h1 {
			margin-top: 30px;
			margin-left: 50px;
			margin-bottom: 20px;
			font-weight: bold;			
			font-size: 17px;
			text-transform: uppercase;
			color: #8cca42;
			}

/* -------------------------------------------------------------------------------------------------------------------> Content */
#Huelle-Content {
			width: 560px;
			height: auto;
			background: #FFFFFF;
			margin-right: 20px;
			float: right;
			display:inline; /* The IE5/6 Doubled Float-Margin Bug */			
			}

#Huelle-Content h1 {
			margin-top: 30px;
			margin-left: 20px;
			margin-right: 20px;
			margin-bottom: 5px;
			font-weight: bold;			
			font-size: 17px;
			text-transform: uppercase;
			color: #8cca42;
			border-bottom: 1px dashed #667e8b;
			}

#Huelle-Content h2 {
			margin-left: 20px;
			margin-bottom: 10px;
			font-weight: bold;			
			font-size: 12px;
			color: #8cca42;
			}

#Huelle-Content p {
			margin-left: 20px;
			margin-right: 20px;
			color: #787878;
			line-height:  1.3em;
    			word-spacing: 0.3em;
			}

#Huelle-Content a {
			color: #8cca42;
			font-weight: bold;
			text-decoration: underline;
			}

#Huelle-Content a:hover {
				color: #8cca42;
				font-weight: bold;
				text-decoration: none;
				}

/* -----------------------------------------------------------------------------------------------------------------> Divider */
#Divider {
		width: 780px;
		height: 10px;
		background: #FFFFFF;
		margin-right: 20px;
		margin-left: 20px;	
		}

/* -----------------------------------------------------------------------------------------------------------------> Abschluss */
#Abschluss {
		width: 820px;
		height: auto;
		background: url(Bilder/Schatten-mitte.gif) repeat-y;
		}

/* -----------------------------------------------------------------------------------------------------------------> Footer */
#Huelle-Footer {
			width: 780px;
			height: 30px;
			background: #3e4d55;
			margin-top: 0px;
			margin-right: 20px;
			margin-left: 20px;		
			}

#Huelle-Footer-Inhalt {
			height: 100%;
			padding-top: 7px;
			margin-left: 50px;
			color: #bdbdbd;	
			float: left;
			display:inline;
			}

#Huelle-Footer-Top {
			height: 100%;
			padding-top: 7px;
			text-align: right;
			margin-right: 20px;
			float: right;
			display: inline;
			color: #FFFFFF;			
			}

#Huelle-Footer-Top a {
			color: #bdbdbd;
			text-decoration: underline;
			}

#Huelle-Footer-Top a:hover {
				color: #bdbdbd;
				text-decoration: none;
				}

/* -------------------------------------------------------------------------------------------------------------------> Rand unten */
#Rand-unten { 
		width:           820px;
		height:          19px;
		background:      url(Bilder/Schatten-unten.gif);
		}

/* -------------------------------------------------------------------------------------------------------------------> clear - Float aufheben */
.clear { 
		clear: both; 
		}		  

.search_string {
			width: 150px;
			}
	  
.Bilder {        
	    margin-right:  10px;
		margin-bottom: 10px;	
		border-style:  solid;
        border-width:  4px;
        border-color:  #FFFFFF;		
        }	
		  
.Bilder:hover {  
              border-style: solid;
              border-width: 4px;
              border-color: #8CC7FF;    
              }
 

Anhänge

  • menü1.jpg
    menü1.jpg
    94,2 KB · Aufrufe: 12
  • menü2.jpg
    menü2.jpg
    51,8 KB · Aufrufe: 8

Neue Beiträge

Zurück