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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T15:16:37+00:00 2026-06-18T15:16:37+00:00

I have a weird issue using background-position .. Simply it’s not working ! Here’s

  • 0

I have a weird issue using background-position.. Simply it’s not working !

Here’s my code :

<div id="follow-wrapper">
    <p>Follow Us</p>
    <ul>
        <li><a href="#" id="facebook-img"></a></li>
        <li><a href="#" id="twitter-img"></a></li>
        <li><a href="#" id="googlplus-img"></a></li>
        <li><a href="#" id="linkedin-img"></a></li>
        <li><a href="#" id="youtube-img"></a></li>
        <li><a href="#" id="rss-img"></a></li>
    </ul>
</div>

#follow-wrapper ul li {
    display: inline-block;    
    margin-left:8px;    
    width: 16px;
    height: 16px;
    background-image: url('../img/follow.png');
    background-repeat: no-repeat;
}

#facebook-img{
    background-position: 0px 0px;
}

#twitter-img {
    background-position: 0px -26px;
}

#googleplus-img{
    background-position: 0px -52px;
}

#linkedin-img{
    background-position: 0px -78px;
}

#youtube-img{
    background-position: 0px -104px;
}

#rss-img{
    background-position: 0px -130px;
}

And here’s the result :
enter image description here

  • 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-18T15:16:38+00:00Added an answer on June 18, 2026 at 3:16 pm

    Put the ids on the li tags instead of the anchors. Currently the li tag receives part of the necessary styling such as width, background-image, etc… While the anchor tag receives the other piece of the styling, the background positioning. All of these styles should be applied to the li.

    <div id="follow-wrapper">
        <p>Follow Us</p>
        <ul>
            <li id="facebook-img"><a href="#" ></a></li>
            <li id="twitter-img"><a href="#" ></a></li>
            <li id="googlplus-img"><a href="#"></a></li>
            <li id="linkedin-img"><a href="#"></a></li>
            <li id="youtube-img"><a href="#"></a></li>
            <li id="rss-img"><a href="#"></a></li>
        </ul>
    </div>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm have a weird issue here. I have a UITableView using custom UITableViewCells. Everything
I have a really weird issue here. I'm using my local development server right
I'm running a weird issue here. I have code that makes jquery ajax calls
I have a weird issue reading a .csv file using c#. Here are the
I have a weird issue with creating an Bitmap in C++. I'm using the
I have a weird issue. Here is the setup: I have a NSOperationQueue which
I have got one weird issue. I am working on an asp .net mvc
I'm fairly new to SVN and I have a weird behavior issue. I'm working
I'm having a small and weird issue using Hibernate. I have two tables: SERVICE
I have this weird issue with special characters. In JSP, I am using field

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.