You need to sign in to do that
Don't have an account?
Yogesh Lolge
Change Pageblock title color and font
I want to add backgroud color and change fot of pageblock title <apex:pageBlock title="Promoter/Group Overview" >
can anyone guide. as its nto accepting div class for formating.
can anyone guide. as its nto accepting div class for formating.
Here's a simple workaround.
Instead of using page block's title, create a facet under pageBlock and name it "header". It'll be auto-assigned as the pageBlock's title when rendered.
Now use CSS to style it as needed. The title's rendered class name is "pbHeader". So use it like this
This should help get you going
if you find this solution is helpful please mark it as the best answer.
All Answers
Here's a simple workaround.
Instead of using page block's title, create a facet under pageBlock and name it "header". It'll be auto-assigned as the pageBlock's title when rendered.
Now use CSS to style it as needed. The title's rendered class name is "pbHeader". So use it like this
This should help get you going
if you find this solution is helpful please mark it as the best answer.
You can use the tabstyle attribute apex:page tag. This will give you most appropriate color according to your object and you don't have to manually override your css.
<apex:page tabstyle="objectAPIName" >
Hope this helps!