Hi
On the shopping cart page (step 2 of 3) I have the prices (sub-total, standard rate, discount etc) like the following:
Sub-Total: £xx.xx
Standard Rate: £xx.xx
10% Discount: £-xx.xx
Total: £xx.xx
As you can see, when there is a discount, it adds a minus (-) and therefore this extra character pushes the text 1 character to the right.
What I'm looking to do, is to align all of these up.
I have the following code:Would I need to do a loop, which possibly would look for the word 'Discount' and possibly add a space ( ) to those that don't have that word? so they all line up correctly?PHP Code:<?php
/**
* Displays order-totals modules' output
*/
for ($i=0; $i<$size; $i++) { ?>
<div id="<?php echo str_replace('_', '', $GLOBALS[$class]->code); ?>">
<div class="totalBox larger forward"><?php echo $GLOBALS[$class]->output[$i]['text']; ?></div>
<div class="lineTitle larger forward"><?php echo $GLOBALS[$class]->output[$i]['title']; ?></div>
</div>
<br class="clearBoth" />
<?php } ?>
Thanks




