Datatable Sorting image position issue

Datatable Sorting image position issue

pal_2486pal_2486 Posts: 2Questions: 0Answers: 0
edited April 2012 in General
I am using JQuery datatable and wanted to move the sorting image say the sorting arrow image should be 10px to the right of the column headers. By changing the below css property to either left or right or center doesn't seem to work for me. i want the image(Sort image) to be 10px to the right of the column header name .Say column header to be Account Manager Name.

[code]
.sorting_asc
{
background: url('images/sort_asc.png') no-repeat center center;
color:#000000;
text-align:left;
}
[/code]

Please Help.
Thanks

Replies

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    There are a couple of ways of doing this - the easiest is simply to add 10px on the side of the image that you want the padding to appear. The alternative is to use the CSS background positioning, a bit like you've got, but you can specify pixel positioning as well 'no-repeat 10px 0' for example.

    Allan
This discussion has been closed.