Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6981511
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T18:10:00+00:00 2026-05-27T18:10:00+00:00

The Datatables sort icon, on column headers, by default appears under the column header

  • 0

The Datatables sort icon, on column headers, by default appears under the column header text. I’d like to have this appear on the same line and on the far right side or far left side of the header cell.

Here’s how the HTML for one of the column headers appears (in Firebug).

<th class="ui-state-default" rowspan="1" colspan="1" style="width: 252px;">
    <div class="DataTables_sort_wrapper" style="text-align: left;">
        Account Name
        <span class="DataTables_sort_icon css_right ui-icon ui-icon-triangle-1-n"></span>
    </div>
</th>

I added display: inline-block; to the css-right class on the <span> to force it to appear on the same line as mentioned here and here. However, I still can’t find how to force the icon to appear on the far right or the far left. Adding float:left; or float:right; bumps the icon to the next line.

Any ideas?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T18:10:00+00:00Added an answer on May 27, 2026 at 6:10 pm

    I don’t know if this is the best way, but here’s what I see in my jQuery-UI DataTable for that symbol:

    From the site’s main stylesheet (not part of the jQuery UI stylesheet):

    .display thead th .DataTables_sort_wrapper span { float: right; }

    From the jQuery UI CSS file:

    .ui-icon { 
      display: block; 
      // ... some other stuff including overflow: hidden 
    }
    

    There are some other styles of course, but I think those are the ones that matter. Based on your question, I’m surprised it’s not already working for you.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a DataTable. I'd like to sort its default view by a column
I am trying to sort a table which has column like 2009-12-17 23:59:59.0 .
I'd like to sort on a column in the result of a stored procedure
I have been using the DataTables plugin for jQuery (http://www.datatables.net) to search, sort and
Is there a way with dataTables to have it not show the sort icons
I have two DataTables, A and B , produced from CSV files. I need
If I have 2 DataTables (dtOne and dtTwo) and I want to merge them
I have two datatables. One is to display names. Another contains three <h:selectOneMenu> .
I have two DataTables. First is DataTable NameAddressPhones = new DataTable(); with Three columns
I have an application that uses DataTables to perform grouping, filtering and aggregation of

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.