function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Ap30Ap30 

setting font color on pageblock title

I have to set blue color to pageblock title font. kindly help. 

<apex:page Controller="xxxxx">
<apex:form >
<apex:pageBlock title="Calculator">
<apex:pageBlockSection >
==========
Best Answer chosen by Ap30
SwethaSwetha (Salesforce Developers) 
HI,
You can try something like
<apex:pageBlock title="Data is refreshed as of "  >
  <font color="##0000FF">
  <apex:facet name="header">
         <span style="color:red">Data is refreshed as of</span>
         </apex:facet>     
  </font> 
 </apex:pageBlock>
Color codes:https://www.computerhope.com/htmcolor.htm 
Related: https://developer.salesforce.com/forums/?id=906F0000000DEtKIAW
https://salesforce.stackexchange.com/questions/73278/how-can-i-apply-css-style-for-pageblock-title-can-i-use-image-as-pageblock-titl/73280
https://developer.salesforce.com/forums/?id=906F0000000B350IAC

If this information helps, please mark the answer as best. Thank you

All Answers

SwethaSwetha (Salesforce Developers) 
HI,
You can try something like
<apex:pageBlock title="Data is refreshed as of "  >
  <font color="##0000FF">
  <apex:facet name="header">
         <span style="color:red">Data is refreshed as of</span>
         </apex:facet>     
  </font> 
 </apex:pageBlock>
Color codes:https://www.computerhope.com/htmcolor.htm 
Related: https://developer.salesforce.com/forums/?id=906F0000000DEtKIAW
https://salesforce.stackexchange.com/questions/73278/how-can-i-apply-css-style-for-pageblock-title-can-i-use-image-as-pageblock-titl/73280
https://developer.salesforce.com/forums/?id=906F0000000B350IAC

If this information helps, please mark the answer as best. Thank you
This was selected as the best answer
Ap30Ap30
Thanks for the reply. It's working.