Jump to content

Showing price, sub and sup?


random1

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.