You need to sign in to do that
Don't have an account?

How to position pageBlockTable on a page
Am having problems positioning a pageBlockTable within a page. I have used the "align" property, but it is being ignored.
Here is a code excerpt:
Any ideas?
Ps: This pageBlockTable is within a VF component
Here is a code excerpt:
<apex:pageBlock mode="maindetail"> <apex:pageBlockTable value="{!voters}" var="voter" id="voterTable" align="center"> <apex:column > <apex:facet name="header"> <apex:outputText value="{!$ObjectType.Meeting_Item_Vote__c.fields.Voter_Name__c.label}" /> </apex:facet> <apex:outputField value="{!voter.Attendee__c}" /> </apex:column> <apex:column > <apex:facet name="header"> <apex:outputText value="{!$ObjectType.Meeting_Item_Vote__c.fields.Voter_Name__c.label}" /> </apex:facet> <apex:outputField value="{!voter.Voter_Name__c}" /> </apex:column> <apex:column > <apex:facet name="header"> <apex:outputText value="{!$ObjectType.Meeting_Item_Vote__c.fields.Proposed__c.label}" /> </apex:facet> <apex:inputField value="{!voter.Proposed__c}" /> </apex:column> <apex:column > <apex:facet name="header"> <apex:outputText value="{!$ObjectType.Meeting_Item_Vote__c.fields.Seconded__c.label}" /> </apex:facet> <apex:inputField value="{!voter.Seconded__c}" /> </apex:column> <apex:column > <apex:facet name="header"> <apex:outputText value="{!$ObjectType.Meeting_Item_Vote__c.fields.Vote_For__c.label}" /> </apex:facet> <apex:inputField value="{!voter.Vote_For__c}" /> </apex:column> <apex:column > <apex:facet name="header"> <apex:outputText value="{!$ObjectType.Meeting_Item_Vote__c.fields.Vote_Against__c.label}" /> </apex:facet> <apex:inputField value="{!voter.Vote_Against__c}" /> </apex:column> <apex:column > <apex:facet name="header"> <apex:outputText value="{!$ObjectType.Meeting_Item_Vote__c.fields.Vote_Abstained__c.label}" /> </apex:facet> <apex:inputField value="{!voter.Vote_Abstained__c}" /> </apex:column> <apex:column > <apex:facet name="header"> <apex:outputText value="{!$ObjectType.Meeting_Item_Vote__c.fields.Vote_Absent__c.label}" /> </apex:facet> <apex:inputField value="{!voter.Vote_Absent__c}" /> </apex:column> <apex:column > <apex:facet name="header"> <apex:outputText value="{!$ObjectType.Meeting_Item_Vote__c.fields.Proxy__c.label}" /> </apex:facet> <apex:selectList value="{!voter.Proxy__c}" multiselect="false" size="1" title="Select a proxy" rendered="{!voter.Vote_Absent__c}"> <apex:selectOptions value="{!proxyList}"/> </apex:selectList> </apex:column> </apex:pageBlockTable> </apex:pageBlock>
Any ideas?
Ps: This pageBlockTable is within a VF component
Try to use <center> before your pageblock and close it </center>.
Please refer below link.
http://www.infallibletechie.com/2012/02/to-align-pageblock-center.html
Hope this helps you!
If this helps you mark it as solved.
Thanks and Regards
Sandhya