Aligning Numeric data

Aligning Numeric data

rishikaushik67rishikaushik67 Posts: 2Questions: 0Answers: 0
edited May 2013 in DataTables 1.9
Hi Team ,

I have problem in aligning numeric data , as per my requirement I want numeric data to be aligned right and text left in datatable grid , I have tried using
table.display td {
padding: 3px 10px;
text-align: right;
}
Now the entire data is getting right aligned , I want only numeric data to be right aligned ,
Thanks in advance.

Replies

  • rishikaushik67rishikaushik67 Posts: 2Questions: 0Answers: 0
    I have also tried using

    {"mDataProp" : "grossAmount","sClass":"right"},

    the problem here is that the grid alignment is getting distrubbed
  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    Link to a test page showing the problem please: http://datatables.net/forums/discussion/12899/post-test-cases-when-asking-for-help-please-read

    Allan
This discussion has been closed.