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
Fatty88Fatty88 

Apex:Facet footer getting everything aligned to the left

The Footer of my pageblock table below is always aligning the data in footer to the left. Is there any way to center align it?

 

<apex:column style="text-align:center;">
<apex:facet name="header">NSY Quota</apex:facet>
<apex:outputText value="{0,number,###,###,###,###,###}">
<apex:param value="{!FinalMap[Grid].RepNSY_Quota}"/>
</apex:outputText>
<apex:facet name="footer"><apex:outputText value="{0, number,###,###,###,###,###}">
<apex:param value="{!FooterNSYQuota}"/>
</apex:outputText></apex:facet>
</apex:column>

Sonam_SFDCSonam_SFDC

Try using style="text-align:center" with  apex:outputText in apex:facet name="footer"

 

Like:

<apex:facet name="footer"><apex:outputText value="{0, number,###,###,###,###,###}  "   style="text-align:center" >

Michal KaparMichal Kapar
Using style="text-align:center" with  apex:outputText is not working for me. :/

but you can use <apex:pageBlockTable footerClass="XXXXXXX"> or place div inside apex:facet.
<apex:pageBlockTable footerClass="XXXXXXX" headerClass="XXXXXXX" captionClass="XXXXXXX">

OR

<apex:facet name="footer">
   <div class="XXXXX">Text</div>
</apex:facet>
viz. https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_compref_dataTable.htm
Sourabh CoolkarniSourabh Coolkarni
<div style="position:absolute; bottom: 5px;">

    Copyright © 1994-2017 knd.com, inc. All rights reserved. //add your footer info here

</div>
put this code in your Visualforce page :)