Martin Bauer: CSS funktioniert bei <h1> nicht richtig?

Beitrag lesen

Hallo,

folgende zwei Dateien:

---- formate.css: ----

<html>
  <style type="text/css">
    h1        {
                background-color:#B0B0B0;
  text-align:center;
  font-size:140%;
  padding-top:2px;
  padding-bottom:3px;
       }
    td       {
  background-color:#E0E0E0;
  padding-left:8px;
  padding-right:8px;
  padding-top:0px;
  padding-bottom:1px;
  vertical-align:top;
              }
  </style>
</html>

---- janosch.html: ----

<html>
<head>
  <title>
    Janosch-Bücher
  </title>
  <link rel="stylesheet" type="text/css" href="formate.css">
</head>
<body>
<h1>Janosch-Bücher</h1>
<p>
<table width=100%>
  <colgroup>
    <col width=80%>
    <col width=20%>
  </colgroup>
  <tr><td>Alle meine Entlein
          &mdash; Eia Popeia            </td><td>2.50 &euro;</td></tr>
  <tr><td>Als unser Frosch Besuch bekam </td><td>2.50 &euro;</td></tr>
</table>
</html>

---------

Problem:

Die Datei janosch.html reagiert problemlos auf die CSS-Formatierung bei TD, ignoriert jedoch völlig die Formatierung bei H1.

Grüße, Martin