#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2000
    Location
    USA
    Posts
    67
    Rep Power
    15
    hello

    i am using perl to grab data from a mysql db and i want to populate a table with it. i have done this, but the column widths seem to keep on chaging depending on the length of the data. how can i keep the column widths constant no matter how long the data?

    Thanks in Advanced

    Comments on this post

    • Gran Roguismo agrees
  2. #2
  3. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2000
    Posts
    6
    Rep Power
    0
    In order to accomplish this, just add the 'width' option to your 'td' (column) table tag(s). So your table HTML code would look like this:
    <BLOCKQUOTE><font size="1" face="Verdana,Arial,Helvetica">code:</font><HR><pre>
    <table width="275">
    <tr>
    <td width="100">
    this is column 1
    </td>
    <td width="175">
    this is column 2
    </td>
    </tr>
    </table>
    [/code]

    Hopefully this helps. If not, let me know.


    ------------------
    dr. cyclops

    Comments on this post

    • Gran Roguismo agrees
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2000
    Location
    USA
    Posts
    67
    Rep Power
    15
    oh, i got it, thanks, i did a silly mistake and used <table> at every single row so that it redid the row length.

IMN logo majestic logo threadwatch logo seochat tools logo