|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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 |
|
#2
|
|||
|
|||
|
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 |
|
#3
|
|||
|
|||
|
oh, i got it, thanks, i did a silly mistake and used <table> at every single row so that it redid the row length.
|
![]() |
| Viewing: Dev Shed Forums > Programming Languages > Perl Programming > keeping cell width constant |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|