Generic styleClass in table

Asked

Viewed 33 times

0

I am mounting a table and wanted to know the following: I want to put a css style in the column headers, you need to use a styleClass in each header or I can declare a generic for all the headers?

<p:dataTable styleClass="tabela">
               <p:column headerText="HP" >                            
               </p:column>
               <p:column headerText="Atk">                             
               </p:column>
               <p:column headerText="Def">                             
               </p:column>
               <p:column headerText="S.Atk">                             
               </p:column>
               <p:column headerText="S.Def">                             
               </p:column>
               <p:column headerText="Spd">                             
               </p:column>
               </p:dataTable>

1 answer

1


if the "header" is a <th> you can put in your style like this:

table th { ... }

Browser other questions tagged

You are not signed in. Login or sign up in order to post.