function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
DannyK89DannyK89 

Right Aligned

I have a button and some field that I would like to Right aligned. I am having some trouble doing that. Can anyone give me a code sample or direct me to a page that shows me how to do that it would really help. Thanks.

Best Answer chosen by Admin (Salesforce Developers) 
vhanson222vhanson222

Have you tried wrapping your <apex:pagBlock> or <apex:pageBlockSection> tags inside of a div like the example below:

 

 

<apex:pageBlock>
    <div style="float:right">
        <apex:pageBlockSection>
            <apex:commandButton />
        </apex:pageBlockSection>
    </div>
<apex:pageBlock>