Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Remove all borders on a specific datatable

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...

like image 830
John Alexander Betts Avatar asked Sep 18 '13 18:09

John Alexander Betts


1 Answers

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;
}
like image 52
BalusC Avatar answered Nov 05 '22 05:11

BalusC