Number alignment (right)

Number alignment (right)

pawpropawpro Posts: 4Questions: 0Answers: 0
edited June 2010 in General
Hello everybody. I'm experimenting with DataTables and am trying to find the best way to get text (or certain columns) aligned to the left (default) and numbers aligned to the right (again alternatively specific columns).

Any suggestions highly appreciated.

Replies

  • codingavenuecodingavenue Posts: 22Questions: 0Answers: 0
    Hi,

    You can try this http://datatables.net/usage/callbacks#fnRowCallback

    Alternatively you can assign a class on each column with a css definition that would set the alignment.

    codingavenue
  • pawpropawpro Posts: 4Questions: 0Answers: 0
    Thanks for your reply.
This discussion has been closed.