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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T01:38:16+00:00 2026-06-09T01:38:16+00:00

I am currently using a sprite image for my tabs menu. The problem is

  • 0

I am currently using a sprite image for my tabs menu. The problem is that the images are showing but the title of each tab is not appearing at all. How can place the image and title inside the tab nicely? EXAMPLE

This what I am aiming for:

enter image description here

This what I am getting:

enter image description here

HTML

<ul>
<li><a href="#tab-1" class="pngIcon sprite-category">1. Category</a></li>
<li><a href="#tab-2" class="pngIcon sprite-description">2. Description</a></li>
<li><a href="#tab-3" class="pngIcon sprite-images">3. Images</a></li>
<li><a href="#tab-4" class="pngIcon sprite-contact">4. Contact Info</a></li>
<li><a href="#tab-5" class="pngIcon sprite-final">5. Final</a></li>
</ul>

postingtabs.css

.pngIcon {
    padding: 0;
    background-image: url(http://webprolearner.ueuo.com/dropdown-menu/images/tabdetails.png);
    background-repeat: no-repeat;
    height: 32px;
    line-height: 32px;
    text-indent: 40px;
    margin: 0 5px;
    display: block;
}
  • 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-09T01:38:19+00:00Added an answer on June 9, 2026 at 1:38 am

    Just delete width on .sprite-* selectors in your css file :

    Your css:

    .sprite-final{  background-position: 0 0; width: 32px; height: 32px; } 
    .sprite-category{ background-position: 0 -82px; width: 32px; height: 32px; } 
    .sprite-contact{ background-position: 0 -164px; width: 32px; height: 32px; } 
    .sprite-description{ background-position: 0 -246px; width: 32px; height: 32px; } 
    .sprite-images{ background-position: 0 -328px; width: 32px; height: 32px; }
    

    Working css:

    .sprite-final{  background-position: 0 0; height: 32px; } 
    .sprite-category{ background-position: 0 -82px; height: 32px; } 
    .sprite-contact{ background-position: 0 -164px; height: 32px; } 
    .sprite-description{ background-position: 0 -246px; height: 32px; } 
    .sprite-images{ background-position: 0 -328px; height: 32px; }
    

    Final Result: demo on dabblet

    enter image description here

    CSS code: (I have made some refactoring)

    li a {
        padding: 0;
        background-image: url(http://webprolearner.ueuo.com/dropdown-menu/images/tabdetails.png);
        background-repeat: no-repeat;
        height: 32px;
        line-height: 32px;
        text-indent: 40px;
        padding: 0 5px;
        display: block;
        text-decoration: none;
    }
    
    .nav-category    { background-position: 0px -85px; }
    .nav-description { background-position: 0px -248px; }
    .nav-images      { background-position: 0px -327px; }
    .nav-contact     { background-position: 0px -164px; }
    .nav-final       { background-position: 0px 0px; }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I currently have collision between 2 sprites working, using sprite.collidesWith(otherSprite) . The problem is
I'm currently using CSS and an image sprite for my navigation (code below). This
Currently using Google Analytics as a supplement to our paid tracking software, but neither
I currently have the following script using CSS Sprites that toggles between active and
I've built a CSS navigation menu using a sprite, very similar to the one
I'm currently testing various ways to zoom images (or rather, whole DisplayList hierarchies). Using
I've built a very basic jQuery plugin that essentially positions a sprite image left
Currently using the HTTPServletRequest class and specifically the .getQueryString method to retrieve an inputted
Currently using MySQL version 5.1.6 This is my first real world build and so
Currently using Xcode 4.2 and I have two view controllers (1 and 2). I

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.