Give the table in question a specific class of styles:
<p:dataTable ... styleClass="borderless">
So you can use more specific CSS selectors for this:
.ui-datatable.borderless .ui-datatable-data tr, .ui-datatable.borderless .ui-datatable-data-empty tr, .ui-datatable.borderless .ui-datatable-data td, .ui-datatable.borderless .ui-datatable-data-empty td { border-style: none; }
(note that I also expanded the selector and enabled tr
, it also has a border by default, your initial selector only removes the vertical border between columns, not the horizontal border between rows)
See also:
source share