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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T03:40:12+00:00 2026-06-11T03:40:12+00:00

I read somewhere that css sprites are better than using simple images. How is

  • 0

I read somewhere that css sprites are better than using simple images. How is that ? also I am new to Html so can anyone tell me how css works and give me a simple example for css sprites?

  • 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-11T03:40:14+00:00Added an answer on June 11, 2026 at 3:40 am

    Here is the complete code. Copy and paste in a notepad and save it as abc.html. Save the two images below in the same folder as:
    image.gif for big one and trans.gif for small one.

    <html>
    <head>
        <title>Image Sprites</title>
        <style type="text/css">
            img.sprite
            {
                width:46px;
                height:44px;
                background:url(image.gif) 0px 0px;
            }        
    
            .sprite:hover
            {
                background: url(image.gif) 0px 44px;
            }
         </style>
    </head>
    
    <body>
        <img class="sprite" src="trans.gif" />
    </body>
    </html>
    
    • image.gif on imgur
    • trans.gif on imgur (1×1 pixels)

    In simple words, CSS sprites use only one image instead of many.
    So instead of many image requests from server only a single request is sent.

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

Sidebar

Related Questions

I read somewhere that using BOOL (typedef int) is better than using the standard
I read somewhere that css masks can be used in Firefox with svg files,
I read somewhere that snprintf is faster than ostringstream. Has anyone has any experiences
I read somewhere that body temperature can be measured through touch screen since different
I recall having read somewhere that it is better (in terms of performance) to
I have read somewhere that javascript and css files that only get cached in
I read somewhere that - You should put all CSS (files) into one single
I've read somewhere, that using anchor tag to submit a form isn't very safe,
I read somewhere that using .htaccess for 301 redirect is not recommended and that
I read somewhere that 'minitest' is the new test::unit for ruby 1.9.2+. But ruby

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.