I have a table that consists of 5 columns, and the content is populated by PHP/MySQL. I have tried using HTML to define the column widths, which works fine, however as the content varies, the widths change by a few pixels. Not a big deal, but I'd rather keep them from doing that.
I'm already defining the table colouring scheme, padding, borders etc using CSS. I've found using:
table.db-table {table-layout: fixed;}
Will stop the column width's adjusting by a pixel or few each time the content inside the table changes.
However, I cannot define each column width in CSS. Is this possible?
I'm already defining the table colouring scheme, padding, borders etc using CSS. I've found using:
table.db-table {table-layout: fixed;}
Will stop the column width's adjusting by a pixel or few each time the content inside the table changes.
However, I cannot define each column width in CSS. Is this possible?