Chris: CSS Hack für den IE 7

Beitrag lesen

Hallo Cheatah,

*+html

habe ich auch schon ausprobiert. Funktioniert allerdings auch nicht, zumindest nicht mit einem einzigen CSS-File.

Habe das File jetzt nochmal angepasst. Der entsprechende Codeschnipsel sieht nun so aus:

/* Firefox und andere Browser */
#navigation {
 background : #A91B56 url(../img/navi_head.gif) no-repeat;
 float : left;
 margin : 0px 0px 0px 10px;
 width : 160px;
}
/* IE 6 und niedrigere Versionen */
* html #navigation {
 background-color: #000000;
 margin : 0px 0px 0px 5px;
 width : 160px;
}
/* IE 7 */
*+html #navigation {
 background-color: #00FF00;
 margin : 0px 0px 0px 10px;
 width : 160px;
}

Ergebnis:

  • Firefox etc. passt
  • IE 6 und drunter passt
  • IE 7 passt nicht (Einstellungen von IE 6 werden angezeigt und die passen im IE 7 nicht)

Was mach ich jetzt?

Gruß
Chris