Einzelnen Beitrag anzeigen

Benutzerbild von DGL-luke
DGL-luke

Registriert seit: 1. Apr 2005
Ort: Bad Tölz
4.149 Beiträge
 
Delphi 2006 Professional
 
#1

CSS: background-color als fallback für background-image?

  Alt 1. Apr 2007, 11:53
Hallo,

folgende Website: http://selbsthilfe-toelz.de

folgendes CSS:

Code:
/** generic menu item **/
.mainlevel {
  display:block;
  height:25px;
  line-height:25px;
  padding-left:15px;
  background:transparent url(../images/bg_mainlevel.gif) repeat-x center top;
  font-weight:bold;
  text-decoration:none;
}
Wenn ich jetzt anstatt "transparent" eine farbe, z.B. #000000 notiere (weil anderswo color: #ffffff notiert ist), wird das hintergrundbild (zumindest im FF) nicht mehr angezeigt...

Warum das?!
Lukas Erlacher
  Mit Zitat antworten Zitat