I am trying to align sorting icons to the extreme right of the columns in displaytag by using "sortable=true". How can I achieve this? Below is an example with one column for reference:
<display:column property="issuerName" scope="col" sortable="true" title="${issuerName}" headerClass="hixTableHeader" class="displayTagtd" />
Below is the CSS code snippet for achieving this alignment:
th.sortable a {
background-image: url(../images/common/header/arrow_off.png);
background-repeat: no-repeat;
background-position:right;
text-decoration: none;
padding-right:25px;
padding-left: 25px;
}
th.order1 a{
background-image: url(../images/common/header/arrow_down.png);
background-position:right;
background-repeat: no-repeat;
text-decoration: none;
padding-right:25px;
padding-left: 25px;
}
th.order2 a{
background-image: url(../images/common/header/arrow_up.png);
background-repeat: no-repeat;
text-decoration: none;
background-position:right;
padding-right:25px;
padding-left: 25px;
}