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

How to modify the style of the <apex:pageBlockSection> title

 <apex:pageBlockSection title="hello">

The page will show a header bar with the title.But the text color is white.It looks not clearly.I want to know how to modify the style of the text.



As the pageBlockSection component doesn't have style based attributes, I think you'll be left to override the style by defining one in your page with the same name as the Salesforce style.  I use Chrome's inspector to determine the style class.


Note that this is a fragile solution though, as if Salesforce change their style names, your override will cease to work and your pageBlockSection will revert to the standard. 


I user tabstyle now that can modify the tab style of the header.It can fix man issue