I’m using the Tablesorter Jquery plugin to sort a table, but the images background images specified in the stylesheet fall behind the text on columns in which the actual content of the column isn’t long enough to push the column width beyond the length of the header text.
For an example, go here: http://tablesorter.com/docs/ and then shrink the browser until the up/down arrows are behind the text of the Age column. I have a similar thing happening.
I can hard code the width of the column to be wide enough, but I’d rather have a more reusable solution in the CSS file.
So does anyone know how to specify a certain ‘padding’ for a . Padding-right and margin-right don’t seem to have any effect.
This is what is in your cell now:
The background image is set in the class header so you can order asc or desc
I guess the only solution is to try something like this
in this way your image will always be on the right hand side of your title hope this helps