Forums

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

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #254369
    markh
    Participant

    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 ;)

    #254370
    Beverleyh
    Participant

    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/

    #254376
    markh
    Participant

    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.

Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘CSS’ is closed to new topics and replies.