aaColumnDefs: sClass: right doesn't seem to work

aaColumnDefs: sClass: right doesn't seem to work

MPeter1975MPeter1975 Posts: 31Questions: 0Answers: 0
edited February 2012 in General
Hi,

If I use this:
[code]
"aoColumnDefs": [
{ "sClass": "center", "aTargets": [ 3 ] }
]
[/code]

everything works fine and the values in the column specified are aligned to center. But if I use this:

[code]
"aoColumnDefs": [
{ "sClass": "right", "aTargets": [ 3 ] }
]
[/code]

all the values are aligned to the left. Can't I align values to the right with aoColumnDefs?

Thanks!
Peter

Replies

  • allanallan Posts: 63,542Questions: 1Answers: 10,476 Site admin
    Do you have a CSS class something like:

    [code]
    td.right {
    text-align: right;
    }
    [/code]

    ?

    Because without that, it ain't going to work :-)

    Allan
This discussion has been closed.