Jojo: background-color bei a:hover im IE

Beitrag lesen

Holadrio

Ich sagte ja auch Warnung, nicht Fehler. BTW, ein Validator sollte dir dasselbe als Warnung sagen.

Nope.

Das ist standardmäßig auch ohne dein Zutun so. [CSS2 §14.2.1]

Eben deshalb gilt ja für '#navi_l a': 'color: #fff' und 'background-color: transparent'. Weißer Adler auf weißem Grund.

Nicht ganz. Die Navigation selbst hat einen Hintergrund -> weißer Adler auf buntem Grund.

Ich kann dein Problem anhand deiner spärlichen Angaben jedenfalls nicht nachvollziehen.
Immer noch nicht. Beim Hovern wird der vorher unsichtbare (s.o.) Link sichtbar: Vorder- und Hintergrundfarbe werden gesetzt.
Du verschweigst immer noch Relevantes.

Du klingst als würde ich das absichtlich machen. Aber wenn du drauf bestehst, hier also der CSS-code des Links und aller Elternelemente.

  
body {  
background: url(bilder/bg_bottom.png) #005 top left repeat;  
font: 0.8em Arial;  
color: #000;  
}  
  
a:link, a:visited, a:hover, a:active {  
text-decoration: none;  
color: #459;  
font-weight: bold;  
}  
  
a:link, a:visited:hover {  
color: #236;  
}  
  
#bg_oben {  
position: fixed;  
left: 0;  
top: 0;  
display: table-cell;  
width: 100%;  
height: 768px;  
background: fixed url(bilder/bg.png) repeat-x;  
}  
  
  
#pos {  
position: absolute;  
left: 50%;  
top: 40px;  
margin-left: -465px;  
width: 1000px;  
}  
  
#navi_content {  
float: left;  
height: 100%;  
width: 850px;  
background: url(bilder/bg_navi.png) 201px 0px repeat-y;  
}  
  
 #navi {  
 float:left;  
 width: 280px;  
 height: 540px;  
 background: url(bilder/navi.png) no-repeat;  
 }  
  
  #navi_l {  
  width: 130px;  
  height: 114px;  
  padding: 8px 0;  
  background-color: #459;  
  text-align: right;  
  }  
  
  
   * html #navi_l {  
   padding: 0;  
   height: 130px;  
   margin-top: 15px;  
   }  
  
  #navi_l li{  
  list-style-type: none;  
  margin-top: 10px;  
  }  
  
  #navi_l a {  
  display: block;  
  padding: 0 10px;  
  color: #fff;  
  font: bold 0.9em Arial;  
  }  
  
   * html #navi_l a {  
   line-height: 0;  
   }  
  
  #navi_l a:hover{  
  background-color: #aac;  
  color: #000;  
  }

Nach einigem rumprobieren hab ich rausgefunden, dass der IE sich ganz im Allgemeinen weigert, dem Link eine Hintergrundfarbe zu geben, solange er auf display:block steht.

Ja, ich greife auf die showhidelayers-Funktion von Dreamweaver zurück

Ähm, die was tun?

Eine Ebene verstecken oder einblenden.