I need to hide all borders of one datatable, not all, using PrimeFaces. I have tried many things and no one has worked. Does anyone know how to do it?
I have applied the following styles (separately) to the ui-datatable
class:
border: hidden !important;
border-style: none !important;
And another things...
Assuming a PrimeFaces 3.5 data table which is marked up as follows,
<p:dataTable ... styleClass="borderless">
then this style should do:
.ui-datatable.borderless thead th,
.ui-datatable.borderless tbody,
.ui-datatable.borderless tbody tr,
.ui-datatable.borderless tbody td {
border-style: none;
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With