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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T11:27:32+00:00 2026-05-22T11:27:32+00:00

I have created a sprite which includes a whole set of icons which I

  • 0

I have created a sprite which includes a whole set of icons which I use in my web application. However, I have run into a problem when styling links. I know with CSS I can manipulate the size of the link and move its background image (the sprite) around, so I only display the icon I want within the sprite. This works great for links with no text. However, if I have a link with a background image and additional text, that is where I run into problems.

Take a look at these images, which will explain my dilemma:

  • Icon sprite: https://picasaweb.google.com/lh/photo/vN74tYI2lsdjOCpvdLjdPBV2JJooBc4dMF1MOKsl3b4?feat=directlink
  • Dilemma: https://picasaweb.google.com/lh/photo/UkC1dP7Fzxv02f_xjX-AEBV2JJooBc4dMF1MOKsl3b4?feat=directlink

I know I can “clip” the background image in CSS3, but I am trying to avoid that at this point, because I know mainly older browsers [like IE8 X(] will be accessing the site, and won’t see this change. Is there a way to do this without placing an additional tag, such as a <span> tag inside of each link and styling those? I’ve seen examples where I can use an AJAX library, like jQuery, to help with this, but that is alot of sweat for a small task.

I hope that wasn’t confusing.

  • 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-22T11:27:33+00:00Added an answer on May 22, 2026 at 11:27 am

    You need to put blank space in your sprite where you need to. That should do the trick.
    Just like this one > http://css-tricks.com/wp-content/csstricks-uploads/youtube-sprite.png

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

Sidebar

Related Questions

My problem: I have created a parent sprite which rotates forever. I have created
I have created a nice joomla website with a sprite navigation that works fine
I have created a JSP / servlets application running in Tomcat 7. It runs
I have created an android application that calls (using kSOAP library) a SOAP based
I have successfully created a UIView which plays an animation of images from an
I've created an image which is basically a CSS sprite of 3 images together.
So created a Sprite to which I add other Sprites which are game tiles.
I have a list of objects that I use to add objects into a
I am new to andengine and even android game development. i have created sprite
I have created an array of Vector2 which holds the position of the place

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.