PDA

Click to See Complete Forum and Search --> : About Table.... HELPPPPPP


Wen Lie
Oct 6th, 2000, 11:00 AM
Dear All....

I would like to ask something related with table in ASP / HTML...

I create a table in my ASP page, with <table> tag.
I've set the width of each column, but, when I add more column, especially when the column become more and more... Usually, the column width will never work out...

Let's say like this :

<table noborder align="left">
<tr align="left">
<td width=200 align="center">Color</td>
<td width=90 align="center">Order</td>
<td width=90 align="center">Cutting</td>
<td width=90 align="center">Over</td>
<td width=80 align="center">%</td>
<td width=400 align="center">PreCutting</td>
..........
<td width=400 align="center">Actual Cutting</td>
</tr>
</table>


From the code above, if I only add 1 or 2 or maybe till 8 column, the width code will still work out. But, when the column grow more, let's say above 8, or maybe 20, or 30...
Hmm... the column will resize to smaller one automatically.

Do you know how to prevent the column width in its actual size (according to my code) ???

Thx in reply...
I need it soon...

Cheers,
Wen Lie

compuGEEK
Oct 6th, 2000, 11:14 AM
Hi Wen,

It may help if you set an initial table width. For instance,

<table border = "0" width = "400">
<tr>
<td>
.....etc


Also, using the colspan tag would work.This
is just an example:



<table border = "1" width = "500">
<tr>
<td width = "200">test</td>
<td width = "200">test</td>
<td width = "200">test</td>
<td width = "200">test</td>
<td width = "200">test</td>
</tr>
<tr>
<td align = "center" colspan = "5">test</td>
</tr>
</table>



Hopefully I didn't confuse you.....

harsoni
Oct 6th, 2000, 11:24 AM
Create the Table in <DIV> and set the overflow property of DIV to true...I think this is a better solution...

Chers
Soni