+1 vote
28 views
by (163k points)

I attempted to center my <apex:commandButton> with <div align="center"> but it places it sort of between the center and the right side instead. Why might this be?

enter image description here

VF Markup snippet

          <!--Submit button-->
      <!--PageBlock starts-->
      <apex:pageBlock>
      <apex:pageBlockButtons location="top">
      <div align="center">
            <apex:commandButton action="{!save}" value="Submit Referral"/>
             </div>
      </apex:pageBlockButtons>
          <br/>
          <br/>
      <div style="text-align:center">
      <p>By clicking this button, you are agreeing to start the registration process.</p>
      </div>
    </apex:pageBlock>
    <!--PageBlock ends-->
  </apex:form>
</apex:page>

1 Answer

Welcome to Memory Exceeded, where you can ask questions and receive answers from other members of the community.
...