+ Start a Discussion
sherazsheraz 

how to center align table title in visualforce page?

Hi,
I create vf page and the title of table is not center align.so 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
thanks

bob_buzzardbob_buzzard

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:

 

<style>
.pbSubheader h3{
   position: absolute;
   left: 50%;
}
</style>