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 6776891
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T16:04:57+00:00 2026-05-26T16:04:57+00:00

This question was asked here but the issue wasn’t resolved. Please see this jsfiddle

  • 0

This question was asked here but the issue wasn’t resolved.

Please see this jsfiddle on IE6 : http://jsfiddle.net/RnsxM/2/

Basically a sprite image (not png fixed) won’t update correctly in IE6. The class seems to be applied (and works without javascript) but the combinaison removeAttr + addClass seems broken.

I tried :

  • !important css statement
  • use of background-position-x or background-position-y

Does someone know a workaround ?

  • 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-26T16:04:58+00:00Added an answer on May 26, 2026 at 4:04 pm

    Not to do with scripting, this is a simple CSS brokenness. Something in IE6’s selector engine can’t cope with the idea of there being two #id.class rules with the same #id on a single stylesheet. This shorter example demonstrates:

    <style type="text/css">
        #sprite.pos1 { background: red; }
        #sprite.pos2 { background: yellow; }
    </style>
    <div id="sprite" class="pos2">Hello</div> <!-- White in IE6! -->
    

    You can avoid it by putting the IDs and classes on different elements, or just breaking the stylesheet up into two:

    <style type="text/css">
        #sprite.pos1 { background: red; }
    </style>
    <style type="text/css">
        #sprite.pos2 { background: yellow; }
    </style>
    <div id="sprite" class="pos2">Hello</div>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I know this exact question was asked here , but the answer didn't work
Searching here I found that this question was already asked , but I think
This is a related to a previous question I have asked here, see the
Variations of this question have been asked before, but it seems like the issue
Ok, i've read most relevant questions asked here previously on this but I still
There seem to be many questions asked about this subject here on stackoverflow, but
This question comes on the heels of the question asked here . The email
This is related to a question I asked here: Thread Locking in Ruby (use
I asked this question before, Here however I think I presented the problem poorly,
This is an extension of a question I previously asked here . Long story

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.