Skip to content Skip to sidebar Skip to footer

Primeng - Implement Css Style To Datatable

I want to change the colors of the DataTable but I cant implement my custom css to it. Please help me understand how to do it. I ve read the documentation at PrimeNG website. I di

Solution 1:

Mark !important tag to your custom styles. May be it will works for you.

.ui-datatable.ui-datatable-thead > tr > th {
   background: red !important;
}

Solution 2:

You can use the below css

.ui-state-default.ui-unselectable-text {
    background-color: red !important;
}

Post a Comment for "Primeng - Implement Css Style To Datatable"