August 12, 2013

How to align right in Visualforce page?

Sample Code:

<apex:page showHeader="false" controller="Sample" >
<apex:form >
    <apex:panelGrid columns="1" style="float:right;">
        <apex:commandButton value="One"/>
        <apex:commandButton value="Two"/>
        <apex:commandButton value="Three"/>
        <apex:commandButton value="Four"/>
        <apex:commandButton value="Five"/>


1 comment:

  1. Hi admin.
    Here i have 3 commmand buttons, and i want to place them in the middle of the page. Right now all these are at left, center and Right .
    So please suggest me to place them in the in the center side by side..

    Thanks in Advance..