Results 1 to 3 of 3

Thread: About Table.... HELPPPPPP

  1. #1

    Thread Starter
    Fanatic Member Wen Lie's Avatar
    Join Date
    Jul 1999
    Location
    Singapore
    Posts
    524

    Unhappy

    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
    Regards,
    [-w-]

  2. #2
    Hyperactive Member compuGEEK's Avatar
    Join Date
    May 1999
    Location
    Mpls,MN,USA
    Posts
    281
    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.....

  3. #3
    Lively Member harsoni's Avatar
    Join Date
    Oct 2000
    Posts
    118
    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
  •  



Click Here to Expand Forum to Full Width