glowhead: background-color funtzt net !

Hallo liebes Forum!
Hab ein kleines Problem mit meinem stylesheet! Richtig eingebunden is der, aber meine Angaben über den Hintergrund werden nicht interpretiert! so sieht die css datei zur zeit aus:

<html>
<head>

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

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

//-->
</style>

</html>

das der stylesheet teilweise interpretiert wird seh ich daran das das <b> in meinem html code durch den stylesheet verändert wird! warum wird der background dann nicht blau???
Danke im Vorraus! GlowheaD

  1. hallo

    das schon probiert?

    <style type="text/css">body {background-color:#0000FF;}</style>

    gruss
    HTMLton

    --
    Do it yourselfhtml...
  2. 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