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

  • Home
  • SEARCH
  • 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 467117
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T23:32:55+00:00 2026-05-12T23:32:55+00:00

<th> My Heading <a href="#" class="sort-asc" title="sort">Sort Asc</a> </th> I want to apply CSS

  • 0
<th>
  My Heading
  <a href="#" class="sort-asc" title="sort">Sort Asc</a>
</th>

I want to apply CSS to .sort-asc to replace the text “Sort Asc” with a custom 16×16 sort glyph image (/images/asc.png), placing the image directly to the right of the text. Is it possible?

NOTE: I can’t change the markup. I can only apply styles; the following is my feeble attempt:

a.sort-asc {
    float: left;
    width: 16px;
    height: 16px;
    padding: 0;
    margin: 5px;
    display: block;
    text-indent: -2000px;
    overflow: hidden;
    background: url("/images/asc.png") no-repeat; 
}

Currently, the image shows up all the way to the left of the table header cell. I need it to the right of the text “My Heading”.

  • 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-12T23:32:55+00:00Added an answer on May 12, 2026 at 11:32 pm
    a.sort-asc {
        width: 16px;
        height: 16px;
        padding: 0;
        display:inline-block;
        text-indent: 200px;
        overflow: hidden;
        background: url("/favicon.ico") no-repeat; 
    }
    

    Removed float – you don’t need it, it’s on the right position. Text indent does nothing with inline, try inline-block: http://jsbin.com/abeme

    Another hack is to add color: transparent, and a small size, but that too hacky.

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

Sidebar

Ask A Question

Stats

  • Questions 237k
  • Answers 237k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer A JProgressBar (possibly in indetermiante mode) sounds right - put… May 13, 2026 at 6:37 am
  • Editorial Team
    Editorial Team added an answer The Interop one is available on the COM tab if… May 13, 2026 at 6:37 am
  • Editorial Team
    Editorial Team added an answer Look at EXTERNAL TABLES in the Oracle doc. You can… May 13, 2026 at 6:37 am

Related Questions

Does anyone know how I can prevent the text in a table cell from
I am trying to figure out how to add a border only inside the
my table has the following html <table class=tb id=tb1> <tr> <th scope=col>OrderID</th> <th scope=col>ProductName</th>
My data is such that I want to display values for the Employee and

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.