Problem with Table

  • Thread starter Thread starter DAL
  • Start date Start date
D

DAL

I have two tables side by side and have set the height and width properties
of both, hoping the borders would not move when I started typing in one of
the tables. It's not working. When I type in one of the tables, the other
table gets smaller. How can I get both tables to stay stationary. Thanks in
advance, DAL.
 
put them in a table

<table style="height:150;">
<tr>
<td>
<table style="height:100%;border:1px solid black;" >
<tr><td>table 1</td></tr>
</table>
</td>
<td>
<table style="height:100%;border:1px solid black;">
<tr><td>table 2</td></tr>
<tr><td>table 2</td></tr>
<tr><td>table 2</td></tr>
</table>
</td>
</table>

the tables will be the same height.

note: you must specify an absolute height in the container table, as there
is default page height in html like there is a width. this means you could
specify 100% for the width and its the screen width will be used, but
specifying 100% for height will be ignore by any complaint browser (IE in
tweak mode will support 100% if the markup is not too complex.)

-- bruce (sqlwork.com)
 

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

Back
Top