I am trying to create a script with some pretty output, using a table and print_html(). However, I am having trouble getting the cell data aligned to anything other than center.
Is there something I am missing here? The CLI output is always centered.
gives this:
Is there something I am missing here? The CLI output is always centered.
Code:
void main() {
string hmi = "<table align=left border=0 cellpadding=0 cellspacing=1 width=300>";
hmi += "<tr><td colspan=2 align=center bgcolor=silver><b>Top Header</b></td></tr>";
hmi += "<tr><td width=275 align=left>Item number one</td><td align=center><b><font color=red>55</font></b></td></tr>";
hmi += "<tr><td width=275 align=left>Item letter B</td><td align=center><b>11</b></td></tr>";
hmi += "</table>";
print_html(hmi);
}
gives this:
