Setting css styles for <apex:column>’s header in <apex:pageBlockTable> - El Toro - Find articles about Visualforce, Apex, Force.com and Salesforce in general

Print Preview

Setting css styles for <apex:column>’s header in <apex:pageBlockTable>

<apex:page controller="cssQuestion">
    <style>
        .headerRow .TableTitle {
            color: #CC0000 !important; 
        }
    </style>
    <apex:pageBlock>
        <apex:pageBlockSection>
            <apex:pageBlockTable value="{!MyAccounts}" var="Account" >
                <apex:column headerValue="ID" headerClass="TableTitle" value="{!Account.ID}" />
                <apex:column headerValue="Name" headerClass="TableTitle" value="{!Account.Name}" />
            </apex:pageBlockTable>
        </apex:pageBlockSection>
    </apex:pageBlock>
</apex:page>

comments powered by Disqus

© El Toro . IT @ 2013
Andrés Pérez