AndreD: background-color funtzt net !

Beitrag lesen

hi glowhead,

<html>
<head>

<style type="text/css">
<!--
body { background-color:blue; }

b { font-family:Arial; font-size:20pt ; font-weight:bold ; color:red ; }

//-->
</style>

-> </head>

-> <body>

-> </body>

</html>

Ok, body-start und body-ende ist optional. der Explorer frisst die Seite auch ohne diese Tags, der alte Netscape 4.x zeigt dagegen ohne einen Bodytag auch keine Backgroundcolor an...
Ist eigentlich ja auch logisch, er versucht einen CSS-Style auf ein Element anzuwenden das es im Code garnicht gibt...

Gruss AndreD