random1 Posted February 26, 2009 Share Posted February 26, 2009 I have my own shopping cart I'm creating and have the price formatted with the code: echo '<p><sub>$AU</sub> ' . $80 . '<sub>.' . 00 . '</sub></p>'; Essentially I want the price to have the cents aligned to the top of the line (in line with dollars amount height). Is there a better way for this without sub and sup as these do not line up like I want? Quote Link to comment https://forums.phpfreaks.com/topic/146971-showing-price-sub-and-sup/ Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.