Print this page

How to change font color in a VisualForce table conditionally?

Knowledge Article Number 000193671
Description Issue -
Developer needs to change the font color in a table conditionally in a VisualForce page
Here's a small piece of sample code to change font color conditionally in a VF table. 
Following is a VF Page that display Accounts in red if the account name is Burberry
<apex:page standardcontroller="Account"> 
<apex:pageBlockTable value="{!account}" var="item"> 
<font color="{!if('Burberry','#ff0000','#00ff00')}"> 
<apex:outputtext value="{!}" /> 

promote demote