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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T15:25:46+00:00 2026-05-31T15:25:46+00:00

OK, in theory this should be an easy one, hopefully I’m just missing something

  • 0

OK, in theory this should be an easy one, hopefully I’m just missing something obvious here. I have the following HTML markup:

<ul id="cPlayControlRack">
    <li class="cplaybutton"></li>
    <li class="CpauseButton CplayHidden"></li>
    <li class="CplaySkipBack"></li>
    <li class="CplaySkipForward"></li>
    <li class="CplayVolumeIcon"></li>
    <li class="CplayVolumeSlide"></li>
</ul>

And the following CSS:

#cPlayControlRack{
    height:28px;
}
#cPlayControlRack li{
    width:29px !important;
    height:28px !important;
    background-image:url(background:url(i/playersprite.png);
    background-repeat:no-repeat;
    display:block;
}
.cplaybutton{background-position:0 0;}
.CpauseButton{background-position:30px 0;}
.CplaySkipBack{background-position:60px 0;}
.CplaySkipForward{background-position:90px 0;}
.CplayVolumeIcon{background-position:120px 0;}
.CplayVolumeSlide{background-position:150px 0;}

For some reason, the first rule is matching. #cPlayControlRack is making the UL 28px high. However, none of the other rules are matching, so the sprite isn’t being shown, and the lis are being given no height or width.

JSFiddle: http://jsfiddle.net/4r2jm/

Edit: My markup is dynamically generated, not that that should make a difference AFAIK.

  • 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-31T15:25:47+00:00Added an answer on May 31, 2026 at 3:25 pm

    There is a syntax error on line 7:

    background-image:url(background:url(i/playersprite.png);
    

    should be:

    background-image:url('i/playersprite.png');
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to achieve something that should be easy in theory I have
In theory this seems easy but I just can't get my head around this...
I have an image that is 480x270. In theory this should occupy all the
Hopefully this will be an easy one to answer. I am working on a
This should be fairly easy. I'm following along with a fairly outdated video course
In theory, this code should set the new lock status to the users and
Ok, this is another one in the theory realm for the CS guys around.
Hopefully, this will be an easy answer for someone with Javascript time behind them...
This is more of a cryptography theory question, but is it possible that the
This is a simple question from algorithms theory. The difference between them is that

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.