Axel Richter: Tabelle mit height="100%" und NS

Beitrag lesen

Hallo,

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
  <title>Fenstermitte?</title>
  <style type="text/css">

html {height:100%;}

body { margin: 0cm 0cm 0cm 0cm;
             height: 100%; }
      .noBorder { border: 0px solid gray; }
    </style>
</head>
<body>
<table summary="mitte?" cellpadding="0" cellspacing="0" class="noBorder" style="height: 100%; width: 100%">
  <tr>
    <td style="text-align: center; vertical-align: middle">Ist das in der Fenstermitte?</td>
  </tr>
</table>
</body>
</html>

Hey, fast! Da muss nur noch ein

html {height:100%;}

in's StyleSheet. HTML ist auch ein Element im HTML.

Gruß

Axel