Does anyone know the best way to set the background of a row or cell as a 'progress bar'. For example if the 'percent used' cell value is '50%' the bar fills half the background of the row or cell.
I am using PHP to generate the table, so maybe I could use a single colour image in the cell and set the width of the img. How would I get the text of the cell to sit on top? How would I know if the text had made the column wider... would I have to use fixed column widths?
Would javascript be better as it would be able to detect how wide the columns were rendered as?
EDIT: Just to clarify, the progress does not change live... just when the page is loaded.