[Xymon] html classes

Boldt, David dboldt at usgs.gov
Mon Jun 19 21:28:31 CEST 2017


Not sure if this is the right venue for posting feature requests, but it
would be useful if html which is generated by programs specified unique
html classes wherever possible to allow CSS styling. An example, for
Information Tables:

*** web/csvinfo.c       2017-06-19 14:14:13.186316715 -0500
--- web/csvinfo.c.new   2017-06-19 14:11:16.385617041 -0500
***************
*** 185,191 ****
          sethostenv(wantedname, "", "", colorname(bgcolor), NULL);
          headfoot(stdout, hffile, "", "header", bgcolor);

!       printf("<table align=center border=1 summary=\"Information
table\">\n");

        for (i=0; (headers[i]); i++) {
                printf("<tr>\n");
--- 185,191 ----
          sethostenv(wantedname, "", "", colorname(bgcolor), NULL);
          headfoot(stdout, hffile, "", "header", bgcolor);

!       printf("<table class=\"informationTable\" align=center border=1
summary=\"Information table\">\n");

        for (i=0; (headers[i]); i++) {
                printf("<tr>\n");



which would permit one to specify in file:
gifs/xymonbody.css

table.informationTable td { margin-left: 1em; margin-right: 1em }

to add a little spacing within the table cells around the text.



                                         -- David Boldt
                                            <dboldt at usgs.gov>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20170619/817fd37a/attachment.html>


More information about the Xymon mailing list