The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Home › Forums › CSS › currency symbol aligned left, numbers aligned right
Hi, a newbie to this site but hoping someone knows the answer!
I have an HTML table with many currency values using different currencies. (e.g. $123,000 €1,234, etc)
Is there a way to have the currency symbol align to the left of the cell while the value aligns to the right? I’m assuming CSS can do this but I just don’t know how ;)
How about using a pseudo element? This idea http://stackoverflow.com/a/11640799
More about pseudo elements https://css-tricks.com/almanac/selectors/a/after-and-before/
My client has told me that I’m limited to inline CSS but I’ll see how I can use the stuff in the links you provided. Thanks.