+ Start a Discussion
Max_gMax_g 

Right Justify amounts in page block section

I am trying to right justify my amounts in a page block section.  I am doing a single column display.  I have set <Right> for the entire block, but all the values are left justified.  Any ideas?

 here is a sample of the code:

 

<divid="caseInfo2"style="float:left;width:7%">

 <apex:pageBlockSectionTitle="Budget %"columns="1">

 

<Right>

            

<apex:outputTextvalue="{0, number, 0,000}">

             

<apex:paramvalue="{!Budgets[0].Jan_Amount__c}"/>

             

</apex:outputText>

Best Answer chosen by Admin (Salesforce Developers) 
SFFSFF

Try this:

 

<apex:outputText value="{0, number, 0,000}" style="float:right;">
  <apex:param value="{!Budgets[0].Jan_Amount__c}"/>
</apex:outputText>

 

All Answers

SFFSFF

Try this:

 

<apex:outputText value="{0, number, 0,000}" style="float:right;">
  <apex:param value="{!Budgets[0].Jan_Amount__c}"/>
</apex:outputText>

 

This was selected as the best answer
Max_gMax_g

Worked great Thanks for the quick response.