HTML question

  • Thread starter Thread starter simon
  • Start date Start date
S

simon

I have simple question:

The red table should be the same height as the blue one because it has set
the height to 100% but it's not.
How can I solve that problem?

<html>
<head>
</head>
<body>
<table border=1><tr><td>
<table bgcolor=blue>
<tr><td><p>hhhh</td></tr>
<tr><td><p>hhhh</td></tr>
<tr><td><p>hhhh</td></tr>
</table>
</tD>
<td><table height='100%' bgcolor=red><tr><td>hhhh</td></tr></table></td>
</tr></table>
</body>
</html>

Thank you,
Simon
 
Even if you set the height to 100%, the table will only take up the amount
of (verticle) space that it needs. If one table has three rows of data and
another only has two, the the first table will be taller.

There are several ways you can ensure that each table will be a specific
height/width. Personally, I use transparent gif's to enforce height/width
requirements. It works well when you have minimum height/width
requirements.


Dave
 
hi
here is ur answer

<html>
<head>
</head>
<body>
<table border=1><tr><td>
<table bgcolor=blue>
<tr><td><p>hhhh</td></tr>
<tr><td><p>hhhh</td></tr>
<tr><td><p>hhhh</td></tr>
</table>
</tD>
<td height="100%"><table height="100%" bgcolor=red
border=1><tr><td>hhhh</td></tr></table></td>
</tr></table>
</body>
</html>

cheers
jeebu
 
Back
Top