Updates to the MoI API of David C Morrill

 From:  Michael Gibson
10857.9 In reply to 10857.8 
Hi Brian,

re:
> So it appears that the CSS :nth-child() Selector can be used in the <style> ... </style> section of the html file.

Yup, it can go in either a .css file that is included by a <link> inside the html file or also inside of a <style>...</style> section directly inside the html file.


> So hundreds of odd or even statements could be eliminated from the API html ???

Yup all of those class="odd" and class="even" could be removed.

It might be good for there to be some kind of mark on the <table> where it should be applied though. The one that I posted above will apply it to every <table> inside the whole file which means the table at the very top of the document will get the striping applied to it now as well when it didn't have it before. But it doesn't seem to look bad there.

This whole thing would probably be a good candidate to have as an .xml file with an XSLT stylesheet along with it to generate HTML output, but I don't think a whole lot of people are familiar with XSL. But that's what I do for generating the MoI command reference (XML/XSLT to HTML).

- Michael

EDITED: 20 Sep 2022 by MICHAEL GIBSON