I have a scenario to change color of text to red when a checkbox is true.
There are 3 columns in pageblock table(output field's).
The third coloumn is of type lookup and has a hyperlink to it, redirecting to that record.
Now the issue is color is changing fine for first two coluns but not for 3'rd column.
vf page:
<apex:pageBlockTable value="{!thevalue}" var="i">
<apex:column headerValue="Name">
<font color="{!if(i.checkbox,'#ff0000','#000000')}">
<apex:outputText value="{!i.name}"></apex:outputText>
</font>
</apex:column>
<apex:column headerValue="Date">
<font color="{!if(i.checkbox,'#ff0000','#000000')}">
<apex:outputField value="{!i.Date__c}"/>
</font>
</apex:column>
<apex:column headerValue="Location">
<font color="{!if(i.checkbox,'#ff0000','#000000')}">
<apex:outputfield value="{!i.Location__c}"/>
</font>
</apex:column>
</apex:pageblocktable>