LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to specifically control column widths in an HTML report

I am generating an HTML report that consists of several detail tables followed by a summary table at the end. Each detail table is generated within a for loop. The summary table is generated separately at the end. The detail tables all have the same column width and same number of columns. However, I cannot get the summary table to have the same column width even though it has the same number of columns and the same column width setting.
Download All
0 Kudos
Message 1 of 2
(3,134 Views)
Hello TLE,

The problem with HTML Tables is that they adapt to the width of the text if you dont specify a value for the width of each column.

In the detail table your string was "Cycle Number" for the first column and "Date - Time" for the second Column. Further the data for "Date - Time" column was quite long so all the detail tables were looking alike. But when you changed the data and titles for the summary table, everything changed.

Try adding "& nbsp;" (non-breaking space) after the text or specify the column width to make sure the column size is correct.

I am attaching the changes HTML file for your reference.

I hope it helps,
Rajiv
0 Kudos
Message 2 of 2
(3,134 Views)