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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T20:22:13+00:00 2026-05-13T20:22:13+00:00

How do you approach the use of image sprites in css? Should I take

  • 0

How do you approach the use of image sprites in css?

Should I take all the images in my website and combine them to one image sprite? Is it really that beneficial?

How hard is it to maintain those images and change them later on?

  • 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-13T20:22:14+00:00Added an answer on May 13, 2026 at 8:22 pm

    Should I take all the images in my website and combine them to one image sprite?

    Of course not. You’re taking it too literal.

    I find sprites are best used for groups of similar images. Examples include:

    1. All states of a graphical button
    2. States of icons
    3. All permutations of a background (unless it needs to tile two ways)

    Is it really that beneficial?

    If you have a lot of them on a busy site, very. It saves a request for each image, saving the user time and your server a whole bunch of concurrent connections.

    How hard is it to maintain those images and change them later on?

    If you’ve used them logically, pretty simple. If you need to add another navigation item, you open up your nav sprite and expand it. For things like navigation it can actually be easier to maintain because you have like comparisons right next to you in the same document.

    Edit, having seen one of the more extreme examples, I’ll add that I would never go that far because:

    • It’s 60k to download. Not huge but on slow connections, that’s 60k that has to be downloaded before anything shows. If all your visual assets are tied up, it can make the load time seem longer.

    • Your CSS becomes a nonsensical mish-mash of background-position commands. If you do want to make changes you have to go back to the sprite and measure everything. Again and again and again.

    • God have mercy on your soul if you need to enlarge something in the top-left of the sprite. You’d probably just add a new sprite below the current ones.

    • And that might lead to bloat. Indeed, just loading all these images might be loading a whole lot of material that some users will never actually see. Loading unused data is probably worse than a connection overhead (considering how easily static content can be served by multiple cheap servers or a CDN)

    The other examples are a lot more simple and worthwhile (IMO).

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

Sidebar

Related Questions

One attempted approach was to use TexturePaint and g.fillRect() to paint the image. This
General approach in GWT is to use Panels and then apply custom CSS themes
Hey everyone, this seems like it should be a simple one; I really hope
I'm trying to wrap my head around what approach I should use to force
I am loading in images with varying sizes and putting them in UIScrollViews, all
I would like to use images for navigation names and change the image for
I need some guidance around which approach to use to load binary files from
I would like some advice on the best approach to use in the following
Can I use this approach efficiently? using(SqlCommand cmd = new SqlCommand(GetSomething, new SqlConnection(Config.ConnectionString)) {
Is it good to use such approach for keeping read-only list of string, for

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.