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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T19:03:57+00:00 2026-05-23T19:03:57+00:00

The question is that how to position an image obtained from an image sprite,

  • 0

The question is that how to position an image obtained from an image sprite, since background-position property has already been used to locate the image from the sprite? For example, in the below code, how could i be able to locate the home obtained from the sprite on the desired position in a web page.

   <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
  <style type="text/css">
  img.home
  {
   width:46px;
   height:44px;
   background:url(img_navsprites.gif) 0 0;
  }
  </style>
 </head>

 <body>
    <img class="home" src="img_trans.gif" width="1" height="1" />
 </body>
 </html>

where, (img_trans.gif) is a transparent image and (img_navsprites.gif) is an image sprite.

  • 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-23T19:03:57+00:00Added an answer on May 23, 2026 at 7:03 pm

    You should move the entire element by setting position: absolute and setting top and left.

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

Sidebar

Related Questions

A question that has pondered me for the last while. I am primarily a
Question: I have a question that is apparently not answered by this already-asked Bash
Here's a question that's been haunting me for a year now. The root question
This is a question that's been nagging me for some time. I always thought
There are two image sprite techniques. The classic version uses the background and the
Here's a question: let's say we have a png image 200x200 that is transparent
I asked a question regarding Bi linear transformations and received this answer: From that
I know this question has been asked to death but nothing through searching has
Recently I've been working on a Greasemonkey script that would add an image to
i have a script that creates divs with some background image then moves them,

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.