Click to See Complete Forum and Search --> : Empty Table Columns


prleo1
05-16-2005, 02:00 PM
I have created a website for my employer that pulls employee information from MySQL database. My issue is with empty columns. For instance, if there is no data for the phone number, that cell in the table will shrink and mess up the formatting of the other columns within that cell. Is there a way to set the column width in a table to a set value even if that cell does not have data in it?

:mad:

NogDog
05-16-2005, 02:11 PM
...that cell in the table will shrink and mess up the formatting of the other columns within that cell....
Does this mean you have a separate table for each record, embedded within another table? If so, that seems sub-optimal. If each record were instead one row (<tr>...</tr>) within the same table, there would be no such problem.

Anyway, the prefered way now is to use the COLGROUP and COL (http://www.w3.org/TR/html4/struct/tables.html#h-11.2.4) elements to set up your column widths.