newbie - alignment
newbie - alignment
Originally my table headings were centered, and all the data below were left aligned. I forced right alignment of the numeric columns like this: [code]
$(document).ready(function() {
oTable = $('#system-daemons').dataTable( {
"bProcessing": true,
"bPaginate": false,
"bFilter": false,
"bInfo": false,
"sAjaxSource": "ducc-servlet/json-system-daemons-data",
"aoColumns" : [
{ sClass: "none" },
{ sClass: "none" },
{ sClass: "none" },
{ sClass: "none" },
{ sClass: "none" },
{ sClass: "alignRight" },
{ sClass: "alignRight" },
{ sClass: "alignRight" },
{ sClass: "none" }
]
} );
} );
[/code]. The data for the three target columns gets right aligned - perfect. But so do the corresponding headings!! How do I keep the headings centered?
Thanks.
Lou.
$(document).ready(function() {
oTable = $('#system-daemons').dataTable( {
"bProcessing": true,
"bPaginate": false,
"bFilter": false,
"bInfo": false,
"sAjaxSource": "ducc-servlet/json-system-daemons-data",
"aoColumns" : [
{ sClass: "none" },
{ sClass: "none" },
{ sClass: "none" },
{ sClass: "none" },
{ sClass: "none" },
{ sClass: "alignRight" },
{ sClass: "alignRight" },
{ sClass: "alignRight" },
{ sClass: "none" }
]
} );
} );
[/code]. The data for the three target columns gets right aligned - perfect. But so do the corresponding headings!! How do I keep the headings centered?
Thanks.
Lou.
This discussion has been closed.