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"/>
</apex:panelGrid>
</apex:form>
</apex:page>
Output:
<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"/>
</apex:panelGrid>
</apex:form>
</apex:page>
Output:
Hi admin.
ReplyDeleteHere 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..