aaColumnDefs: sClass: right doesn't seem to work
aaColumnDefs: sClass: right doesn't seem to work
![MPeter1975](https://secure.gravatar.com/avatar/3a617cd412fa8a4a869662cf7308bbf9/?default=https%3A%2F%2Fvanillicon.com%2F3a617cd412fa8a4a869662cf7308bbf9_200.png&rating=g&size=120)
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
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
This discussion has been closed.
Replies
[code]
td.right {
text-align: right;
}
[/code]
?
Because without that, it ain't going to work :-)
Allan