You need to sign in to do that
Don't have an account?
BrokenBird
pageBlockTable column styleClass not changing text color
For some columns of my pageBlockTable I am specifying a different StyleClass:
.SpendingStyle {background-color: lightgrey; color:grey; background-image:none}
<apex:column styleClass="SpendingStyle">
<apex:facet name="header"><b>Immediate Costs</b></apex:facet>
<apex:outputField value="{!aProject.project.Immediate_Costs__c}" />
</apex:column>
However the color of the text is never applied. What do I need to do to make the color of the text change?
I forgot about this workaround, whoops. Wrap your outputfield in a span:
<span Class="fontColor"> <apex:outputfield value="{!o.Name}"/> </span>
All Answers
I forgot about this workaround, whoops. Wrap your outputfield in a span:
<span Class="fontColor"> <apex:outputfield value="{!o.Name}"/> </span>
FYI, I've found that SFDC's styles are pretty stubborn. Something like this should work:
Although that's not exactly the prettiest hack.