Themeroller -- Sort Icons render on separate line
Themeroller -- Sort Icons render on separate line
Every visible column in my datatable has its sort icon displaying on a separate line -- otherwise everything is functional and properly themed? I've tried multiple themes (Redmond, Smoothness, etc.) to no avail.
BTW, the sort icon is right justified immediately under the column name.
Any ideas how I can fix this?
BTW, the sort icon is right justified immediately under the column name.
Any ideas how I can fix this?
This discussion has been closed.
Replies
It sounds like you just need a "float:right" on the icon element. I added a css class of "css_right' to do this in my examples. If you inspect the element with Firebug (or whatever your development tool of choice is...) you'll be able to see this style applied.
Regards,
Allan
Note that the arrow it's right-aligned (on its own row) and firebug shows the css_right class for the .
Any ideas on possible workarounds?
Column header
Note that you can't use a since Datatables then automatically adds the JQuery UI icon classes to it.
Regards,
Martin
I also have the search and pagination showing on top of each other instead of side by side.
Did you add the css_right right declaration as noted in my post above. Also, is there enough room in the column for the icon element to be positioned to the right (i.e. the text isn't to long and takes up the whole space available)?
Regards,
Allan
Using IE8 in IE7-Compatibility mode
jquery.dataTables.css
jquery.dataTables_themeroller.css
Once I did this, everything worked fine.