Does anyone know a better way to set the background of a row or cell as a progress bar. For example, if the cell value used by the percentage is equal 50%, the bar fills half the background of the row or cell:
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
βββββββββββββββββββββββββββββββ78%βββββββββββββββ β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
I use PHP to create a table, so maybe I could use a single color image in a cell and set the width to img. How can I get cell text to sit on top? How can I find out if the text has expanded the column width ... would I have to use fixed column widths?
Will Javascript be better, since it will be able to determine how wide the columns were displayed as?
EDIT: To clarify, progress does not change in real time ... only when the page is loaded.
source
share