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? Link to comment https://forums.phpfreaks.com/topic/146971-showing-price-sub-and-sup/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.