How to remove border crash from p: dataTable?

I want to remove border-collapsefrom <p:dataTable>. I tried several ways, but no luck, here is what I have tried so far:

Firstly:

.ui-datatable table {
    border-collapse: hidden !important;
}

Secondly:

.ui-datatable table {
    border-collapse: none !important;
}

Third:

<p:dataTable value="#{JpublicCalendar.public_day_1_list}"
             var="o"
             styleClass="value">
    <p:column>
        <h:graphicImage value="PrivateDisplayImage?id=#{o.id}"
                        width="126"
                        height="64">
        </h:graphicImage>
    </p:column>
</p:dataTable>

CSS for it:

.value {
    border: none !important;
    border-collapse: none !important;
}
+4
source share
1 answer

use the following css style:

.value table * {
       border: none !important;
   }
+2
source

Source: https://habr.com/ru/post/1568995/


All Articles