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 center align table title in visualforce page?

I create vf page and the title of table is not center what is the way to align the tabel title in VF apge.

this is what i am using in my vf page:


 <apex:pageBlockSection title="App" >

</apex:pageBlockSection >
please help me


The only way to achieve this that I know of is fragile - it relies on the CSS classes and rendered HTML layout, so if either of those change it will stop working.


The heading is an h3 element nested inside a div with a class of pbSubheader.  Thus to center that h3 element I can provide the following style:


.pbSubheader h3{
   position: absolute;
   left: 50%;