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
vanillasky1.3938481563139287E12vanillasky1.3938481563139287E12 

Align a column name to centre

How to align a column name to centre in VF Page? 

Tried out :
<apex:outputPanel id="datePanel" style="float:center;">Role</apex:outputPanel>
<apex:outputPanel id="datePanel" style="float:centre;">Role</apex:outputPanel>

hitesh90hitesh90
try to use style="align:center" instead of "float:center".
vanillasky1.3938481563139287E12vanillasky1.3938481563139287E12
I used :
<apex:column style="width:150px">
                    <apex:facet name="header">
                    <apex:outputPanel id="datePanel" style="align:center">Type Of Opportunity</apex:outputPanel>
                    </apex:facet>


But didnot help :|
hitesh90hitesh90
Put following stylesheet in your visualforce page.

<style>
        .headerRow{
            text-align:center;
        }
    </style>


vanillasky1.3938481563139287E12vanillasky1.3938481563139287E12
Thanks ! 
It worked :)