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
SFDC ADM 7SFDC ADM 7 

align page block title

Hi,
How can I align page block table title into centre

<apex:pageblock title="Main title"> 

title in page block want show in center, how to do this?
Please help me

Thanks in Advance
Best Answer chosen by SFDC ADM 7
GauravGargGauravGarg
hack it then:
 
<style type="text/css">
    	.pbTitle{
        	Text-Align: center;
        }
    </style>

Thanks,
Gaurav
Skype: guarav62990

All Answers

GauravGargGauravGarg
style="text-align: center"

 
SFDC ADM 7SFDC ADM 7
It is giving error as Unsupported attribute style in <apex:pageBlock> 
what to do?
GauravGargGauravGarg
hack it then:
 
<style type="text/css">
    	.pbTitle{
        	Text-Align: center;
        }
    </style>

Thanks,
Gaurav
Skype: guarav62990
This was selected as the best answer