You need to sign in to do that
Don't have an account?
Meggan Landis 2
How can I change the font color of embedded text in a vf page?
This seems so simple, but I can not get this to work. I have a table with the included line item in a table. I am trying to change the font color of the work "inpatient" to red. I thought the font color tag would work, but it's not. Any suggestions? I do not want to change the color of the entire line or of the output value, just the single word within the text? Thanks!
<tr><th><b> Is accredidation required for<font color="red"> inpatient</font> services?: </b> </th>
<td><apex:outputText value="{!Practice_Group__c.Is_state_license_required__c}"/></td>
</tr>
<tr><th><b> Is accredidation required for<font color="red"> inpatient</font> services?: </b> </th>
<td><apex:outputText value="{!Practice_Group__c.Is_state_license_required__c}"/></td>
</tr>
Hey Meggan,
Kindly check this link :-
https://developer.salesforce.com/forums/?id=906F0000000AzoBIAS
https://www.biswajeetsamal.com/blog/change-text-color-in-visualforce-page/
If it helps, kindly mark it as the best answer.
Thank you
Priya Ranjan