Thomas J.S.: IE stellt Tabelle falsch dar - XHTML.

Beitrag lesen

Hallo,

ich habe ein Problem mit Tabellen im IE in XHTML-Strict:Der Depp stellt die nicht richtig dar.

Wenn deine seite wirklich den Code hat, kann es gar nicht gehen:
/* das ist ein kommentar im css */
<tr> nicht geschlossen (oder eimla zu oft geöffnet.
Aber so sollte es auch mit dem IE gehen:

Grüße
Thomas
<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Strict//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'>
<html>
<head>
<style type='text/CSS'>

html {
height:100%; /*Fuer NN.*/
}

body {
margin:0px;
padding:0px;
height:100%; /*Fuer IE.*/
}

table {
width:100%;
height:100%;
}

td { height:100%; }
.Static {
height:88px; /*Hier ist das Problem: Die Hoehe steht auf 88 Pixel!*/
}

</style>
</head>
<body>
<table border='2'>
 <tr>
  <td class='Static'>Erste Zelle</td>
 </tr>
 <tr>
  <td>Zweite Zelle </td>
 </tr>
</table>
</body>
</html>