On a Visualforce app, I have a pageBlockSection with a title provided by a facet header:
<style> .red {color: red;} .green {color: green;} </style> <apex:pageBlockSection id="pbs"> <apex:facet name="header"> <apex:outputPanel styleClass="{!IF(variable1=='Positive','green','red')}">Uncoloured: Coloured</apex:outputPanel> </apex:facet> </apex:pageBlockSection> And right now it comes out as entirely green or entirely red. How could I make it so that only the second half appear as coloured whilst the first half remains black. e.g. Uncoloured(black): Coloured(red/green).