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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T08:13:17+00:00 2026-06-05T08:13:17+00:00

All right, so this is only a test example (not polished) of something I

  • 0

All right, so this is only a test example (not polished) of something I was working on for a project. Let’s say you have an image being used for navigation set as the background for an element, that image has transparency, and when it is changed, the visible portion of the image is reduced.

I am using iceweasel 10, and when I do this the “shrunken” version of the sprite is merely drawn on top of the previous background. This means that the previous background is still visible around the outside of the smaller sprite.

This can be “fixed” by specifying a background color along with the new image sprite for :active, but what about keeping the the transparency? What if the background isn’t a solid (or known) color?

Here is the issue demonstrated in html. Here is the png used for the sprite.

Is this an artifact of my browser’s rendering engine, or is this standard for CSS? Thanks.

  • 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-06-05T08:13:18+00:00Added an answer on June 5, 2026 at 8:13 am

    Your problem is that one background is being applied to the a, while the other is on the container. Setting the a;s background does not clear the container’s bakground. Replace:

    #home{
    left:0px;
    width:46px;
    background:url('img_navsprites_hover2.png') 0 0;
    }
    #home a:hover{
    background: url('img_navsprites_hover2.png') 0 -45px;
    }
    #home a:active{
    background: url('img_navsprites_hover2.png') 0 -90px;
    }
    

    With

    #home {
        left: 0px;
        width: 46px;
    }
    #home a { background: url('img_navsprites_hover2.png') 0 0; }
    #home a:hover{ background: url('img_navsprites_hover2.png') 0 -45px; }
    #home a:active { background: url('img_navsprites_hover2.png') 0 -90px; }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

It's possible I am not doing this right at all. I am initializing and
Right so, I'm not particularly skilled at this at all, this is in fact
I have taken this example test before I'll try to take the real one
I want add my custom sidebar next right column all page. Please check this
First of all I don't know if this is the right approach. I want
All right so I tried using the button set. So fair, I have been
I'm not sure the title of question is all right, as well as how
I have a couple of unit test helper extension methods, such as, IsNotEmpty(this string
I have this rewrite rule that turns foo.com/test (or foo.com/test/) into foo.com/test.txt: RewriteRule ^test/?$
I have created a filter toolbar based on this example . I have an

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.