Hi Ihr,
ich habe ein CSS-Problem:
Ziel: Navigationsbalken links mit 2ter Ebene
also an Selfhtml angelehnt und mit Nachfahren-selektoren gemacht:
ul#nav
ul#nav li
ul#nav li ul
ul#nav li ul li
Das geht auch alles richtig in IE6, aber Firefox ordnet den Eintraegen zweiter Ebene keine Style-Eigenschaften zu. Z.B. erscheint trotz „border:1px solid black;“ bei ul#nav li ul eben kein Rahmen um die untergeordnete Liste. Was mach ich falsch? Oder ist es FF?
Verzweifelt, Dennis
Es folgt das Original-Stylesheet:
/*Basic Stylesheet GibbonEXP*/
body, a {
font: normal 100.01% Helvetica, sans-serif;
color: #000000;
margin:0;
padding:0;
border: none;
background-color: #fff;
}
p {
padding:0px;
margin:0px;
}
div#hd{
/*Header-Section*/
margin-bottom:10px;
height: 110px;
width: 100%;
display:block;
}
/* picture-links without border*/
a img {
border-style:none;
}
/*Navigation-Bar*/
/*==============*/
div#n-list{
padding: 0px;
margin: 0px;
width: 9em;
float:left;
clear:both;
}
ul#nav-vert-list{
/*List-Container 1st Level*/
margin-top:0px;
margin-left:10px;
margin-right:10px;
text-decoration: none;
padding: 0px;
}
ul#nav-vert-list li{
/*List-Element 1st Level*/
padding: 0px;
list-style: none;
text-decoration: none;
font-size: small;
margin-top:10px;
}
ul#nav-vert-list a {
/*Button 1st Level*/
display: block;
padding: 4px;
height: 1.2em;
background: #008000;
border-right: solid #004000 2px;
border-bottom: solid #00FF00 2px;
}
ul#nav-vert-list li a:link {
/*Behaviour of Link-Button 1st-Level*/
color: #FFFF80;
text-decoration:none;
}
ul#nav-vert-list li a:visited {
/*Behaviour of Link-Button 1st-Level*/
color: #FFFF80;
text-decoration:none;
}
ul#nav-vert-list li a:hover {
/*Behaviour of Link-Button 1st-Level*/
text-decoration:none;
font-weight:bold;
}
ul#nav-vert-list li a:active {
/*Behaviour of Link-Button 1st-Level*/
text-decoration:underline;
}
ul#nav-vert-list li a:focus {
/*Behaviour of Link-Button 1st-Level*/
text-decoration:none;
font-weight:bold;
}
/*second level Navigation*/
/*List-Container 2nd Level*/
ul#nav-vert-list li ul{
margin-left:10px;
margin-top:0px;
margin-right:0;
clear:both;
list-style: none;
text-decoration: none;
font-size: x-small;
}
ul#nav-vert-list li ul li{
/*Button for vertical Navigation*/
text-decoration: none;
margin:0 0em 0 0 ;
}
ul#nav-vert-list li ul li a {
border-right: solid #004000 2px;
border-top: solid #101010 1px;
border-left: solid #101010 1px;
border-right: solid #101010 1px;
border-bottom: none;
display:block;
background: #00aa80;
padding: 0.1em ;
padding-left: 1em;
}
ul#nav-vert-list li ul li a:link {
color: #000000;
text-decoration:none
}
ul#nav-vert-list li ul li a:visited {
color: #000000;
text-decoration:none;
}
ul#nav-vert-list li ul li a:hover {
text-decoration:none;
font-weight:bold;
background-color: white;
}
ul#nav-vert-list li ul li a:active {
text-decoration:underline;
}
ul#nav-vert-list li ul li a:focus {
text-decoration:none;
font-weight:bold;
}
/*=============================*/
/* Main Content*/
div.cont-txt {
/*Freeflow-text indented*/
clear: right;
margin-top:20px;
margin-left:11.8em;
font: Arial, Helvetica, Verdana, sans-serif;
font-size: small;
}
div.cont-txt p:first-letter {
/*Big Initials in content-texts*/
font-size:200%;
color:red;
}
div.cont-txt p{
text-align:justify;
}
div.cont-txt h1 {
color:#777;
font-size:200%;
padding:0px;
margin:0px;
}
div.cont-txt img {
background-color: #ddd;
margin: 8px;
padding: 10px;
}
p.cnt {
/*centered*/
text-align:center;
}
img.lng {
/*language buttons*/
right: 0px;
margin-right:10px;
padding-top:0px;
float:right;
}
