HTML question

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
 
D

David Young

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
 
J

Jeebu

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top