We need to display the following using Visualforce page from Account object and need to display the Sum/Total for the Columns Open Volume and Close Volume. I used to display the 3 columns but finding it difficult to display the line and its sum for the columns Open Volume and Close Volume, can you please help.

[![Account volume table](https://i.stack.imgur.com/eQyLS.gif)](https://i.stack.imgur.com/eQyLS.gif)

I tried below code:

```
<apex:page controller="FetchData">
<style>
.ct
    {
        text-align:right;
    }
</style>
    <apex:pageMessages />
    <apex:form >
        <apex:pageBlock >
            <apex:pageBlockTable value="{!accounts}" var="account">                    
                <apex:column value="{!account.Name}" headerValue="Account Name" style="text-align: right;width:33%" headerClass="ct"/>
                <apex:column value="{!account.Open_Volume__c}" headerValue="Open Volume" style="text-align: right;width:33%" headerClass="ct">
                    <apex:facet name="footer"><hr noshade="noshade" width="8%" align="right"/>{!openVolumeSum}</apex:facet>
                </apex:column>
                <apex:column value="{!account.Close_Volume__c }" headerValue="Close Volume" style="text-align: right;width:33%" headerClass="ct">                
                <apex:facet name="footer"><hr noshade="noshade" width="8%" align="right"/>{!closeVolumeSum}</apex:facet>
                </apex:column>
            </apex:pageBlockTable>
        </apex:pageBlock>
    </apex:form>
</apex:page>

```

controller:

```
public with sharing class FetchData 
{
    public List<Account> accounts{get;set;}
    public Decimal openVolumeSum{get;set;}
    public Decimal closeVolumeSum{get;set;}
    public FetchData()
    {
        openVolumeSum = 0;
        closeVolumeSum = 0; 
        accounts = [Select Name, Open_Volume__c, Close_Volume__c from Account Limit 10];
        if(accounts.size()>0)
        {
            for(Account acc: accounts)
            {
                openVolumeSum = openVolumeSum+acc.Open_Volume__c;
                closeVolumeSum = closeVolumeSum+ acc.Close_Volume__c ;
            }
        }
    }
}

```

and got below output:

[![enter image description here](https://i.stack.imgur.com/Lot7f.jpg)](https://i.stack.imgur.com/Lot7f.jpg)

As you see from the image, how do I align the totals(55 & 550) in line with the column values. I tried right align but it is not working.

Thanks.