generic styleClass in table

0

I'm putting together a table and I wanted to know the following: I want to put a css style in the column headers, do I need to use a styleClass in each header or can I declare a generic for all 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>
    
asked by anonymous 23.10.2015 / 15:13

1 answer

1

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

table th { ... }
    
28.10.2015 / 18:24