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: