|
-
Oct 6th, 2000, 11:00 AM
#1
Thread Starter
Fanatic Member
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 :
Code:
<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
-
Oct 6th, 2000, 11:14 AM
#2
Hyperactive Member
Hi Wen,
It may help if you set an initial table width. For instance,
Code:
<table border = "0" width = "400">
<tr>
<td>
.....etc
Also, using the colspan tag would work.This
is just an example:
Code:
<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.....
-
Oct 6th, 2000, 11:24 AM
#3
Lively Member
Create the Table in <DIV> and set the overflow property of DIV to true...I think this is a better solution...
Chers
Soni
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|