csshtml-tablegridjs

Adding border style to <tr> not wokring


enter image description here

Is this feature available with gridjs or I am not putting it in right place as expected by Api?


Solution

  • You can't set borders to a tr - apply them to the td elements instead (and use border-collapse: collapse on the table element to avoid double borders optionally)

    Note: On the tds, use border-top and/or border-bottom to avoid vertical borders between the cells, also border-left on td: first-child and border-right on td: last-child to have vertical borders on the outsides.