For Programmers: Free Programming Magazines  


Home > Archive > ASP .NET > February 2006 > Problem with Table









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Problem with Table
DAL

2006-02-28, 7:03 pm

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.


Bruce Barker

2006-02-28, 7:03 pm

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)






"DAL" <dalmailbox-mail@yahoo.com> wrote in message
news:OZc7g2JPGHA.2924@TK2MSFTNGP11.phx.gbl...
>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.
>



Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2010 codecomments.com