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 td
s, 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.