Dear reader!
 
The following code validates, as you may check by copy-paste, XHTML Strictly:
 
<!DOCTYPE html PUBLIC "-//W3S//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title></title>
</head>
<body>
<table style="border:1px solid #000000;height:400px;">
<tr><td>
 <table style="height:100%;">
  <tr><td style="border:1px solid #000000;">Row 1</td></tr>
  <tr><td style="border:1px solid #ff0000;height:100%;">Row 2: This row should take up all available vertical space, thereby pressing row 1 upwards and row 3 downwards</td></tr>
  <tr><td style="border:1px solid #000000;">Row 3</td></tr>
 </table></table>
</body>
</html>
 
The problem is that the vertically expansion of row 2 of the inner table does not work. If however the doctype declaration line is removed it works as expected. Try it yourself. It does not make any difference if a transistional doctype is used.
 
Is this a problem with the XHTML specification by itself or is it only a consequence of an error in the browser. (I'm using IE6+).
 
 
/John Fredsted


Find din nye bolig med MSN Bolig