I have been musing over why the HEIGHT attribute in a TABLE element is being ignored. I have tracked it down to a DOCTYPE statement.
The code I ended up testing is as follows
<%@ Page Language="VB" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "
<html xmlns=" xml:lang="en">
<head runat="server">
<title>Untitled Page</title>
</head>
<body>
<form id="form1" runat="server">
<table border="2" cellpadding="0" cellspacing="0" style="width: 100%; height: 100%">
<tr>
<td colspan="2" style="height:40%">Testing 1
</td>
</tr>
<tr>
<td style="height:30%">Testing 2
</td>
</tr>
<tr>
<td colspan="2" style="height: 30%">Testing 3
</td>
</tr>
</table>
</form>
</body>
</html>
The above code seems to ignore the 'height' attribute.
However, if I take the DOCTYPE out, I get the 3 rows with the 'height' attribute being obeyed.
Can someone explain this please.
Thanks for your help. You are great people.
The code I ended up testing is as follows
<%@ Page Language="VB" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "
<html xmlns=" xml:lang="en">
<head runat="server">
<title>Untitled Page</title>
</head>
<body>
<form id="form1" runat="server">
<table border="2" cellpadding="0" cellspacing="0" style="width: 100%; height: 100%">
<tr>
<td colspan="2" style="height:40%">Testing 1
</td>
</tr>
<tr>
<td style="height:30%">Testing 2
</td>
</tr>
<tr>
<td colspan="2" style="height: 30%">Testing 3
</td>
</tr>
</table>
</form>
</body>
</html>
The above code seems to ignore the 'height' attribute.
However, if I take the DOCTYPE out, I get the 3 rows with the 'height' attribute being obeyed.
Can someone explain this please.
Thanks for your help. You are great people.