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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T06:37:53+00:00 2026-05-23T06:37:53+00:00

Hello everyone! I have a website which is http://www.urbanelementz.ca … It’s currently in development.

  • 0

Hello everyone!

I have a website which is http://www.urbanelementz.ca … It’s currently in development.

Please note that I’m quite familiar with CSS sprites and can make mouse-over/rollover sprites as well as static image sprites. I use about 7 or 8 major sprites on my website that control most of the images and multiple mouse-overs (such as the menu, etc).

My question: I have about 8-10 DIV’s that use background images. As of now, each div has it’s own background-image. Either I’m missing something very simple or I’m just stumped because I can’t seem to code it properly to work.

My problem: I know how to make the sprite, I know how to link to the sprite but when you use the “background-position: 0px 0px” option it will move the background image position in the DIV and not the background position on the image to show the proper sprite.

You can view my CSS file here: http://www.urbanelementz.ca/css/style.css
Note that it’s not fully organized or optimized at the moment because I’m making changes.

Please take a look at the css sprites which are all located towards the bottom and have comments so you can see which ones they are.

Am I missing something obvious? Maybe I’m sleep deprived. =0)

If someone can point me to a tutorial or just paste the proper coding and description of how to do it, that would be great.

Thanks so much!

  • 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-23T06:37:54+00:00Added an answer on May 23, 2026 at 6:37 am

    As per your comment, below is the content of the fiddle I created:

    <div id="one"></div>
    <div id="two"></div>
    <div id="three"></div>
    <div id="four"></div>
    <div id="five"></div>
    
    div {
        width: 100px;
        height: 20px;
        border: 1px solid #aaa;
        margin-bottom: 5px;
        background-image: url('http://www.gravatar.com/avatar/e1122386990776c6c39a08e9f5fe5648?s=128&d=identicon&r=PG');
    }
    #one {
      background-position: -15px 0;
    }
    #two {
      background-position: -15px -27px;
    }
    #three {
      background-position: -15px -54px;
    }
    #four {
      background-position: -15px -81px;
    }
    #five {
      background-position: -15px -108px;
    }
    

    http://jsfiddle.net/TFwdB/

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

Sidebar

Related Questions

Hello everyone i currently have this: import feedparser d = feedparser.parse('http://store.steampowered.com/feeds/news.xml') for i in
Hello everyone I have error which breaks up my build for no reason, here
Hello everyone I have converted a project in C# to F# that paints the
Hello everyone please help me out regarding this query which is fetching the data
Hello I have the following error by git-fsck, which cannot be cleaned by git-gc
Hello , I am currently working on the student association's website. The student's association
Hello everyone Masters Of Web Delevopment :) I have a piece of PHP script
Introduction : Hello Everyone, I have been looking for days for a way to
Some details XAMPP 1.7.1 OS tested on vista and xp Hello everyone. I have
Hello everyone i have big query to calculation and counter by clinic ID SELECT

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.