Alternate odd/even background color rows for Customing Dump Output

Any suggestion of how to code this with ToDump using ToExpando?

Comments

  • JoeAlbahari
    edited April 2018
    There's an easier way: go to Edit | Preferences | Results > Style Sheet = custom, and add the following customizations:
    tr:nth-child(even) {background:#f2f8ff}
    tr:nth-child(odd) {background:#fff}
  • JoeAlbahari
    edited April 2018
    Or if you just want to activate this with specific queries:
    Util.RawHtml ("<style>tr:nth-child(even) {background:#f2f8ff}</style><style>tr:nth-child(odd) {background:#fff}</style>").Dump();
    ...
    ...dump your queries...
  • I test with first solution. It works! Thank you.