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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T22:31:56+00:00 2026-06-11T22:31:56+00:00

I am wanting to use an image sprite for a hover action, but I’ve

  • 0

I am wanting to use an image sprite for a hover action, but I’ve been working on it for an hour and can’t get it right. The span element video-play-q-right has the sprite as its background.

Here is my sprite:

enter image description here

Here is a screenshot of the divs:

enter image description here

Here is the html:

    <div class="video-box">
         <div class="video-img">
             <a href="#" onclick="window.open('http://url.html','photoessay','scrollbars=no,resizable=yes,width=800,height=600')">
             <img src="resources-na/images/video.jpg" width="200" height="155" border="1">
             <span class="video-play-q-right">play</span></a>
        </div>
        <div class="video-text">
            <p><strong> of Water</strong>.<br /> water's properties. (05:43 min)
            <a href="#" onclick="window.open('http://url.html','photoessay','scrollbars=no,resizable=yes,width=850,height=722')">... View</a></p>
        </div>
    </div>

Here is the CSS:

.video-box{
    padding-right: 20px;
    float: left;
    width: 200px;
}
.video-img {
    background-color: #EEEEEE;
    border: 1px solid #DDDDDD;
    margin-bottom: 0 !important;
    padding: 4px;
    width: 200px;
    height: 155px;
}

.video-play-q-right {
    background: url("../images/video-play-q-big.png") no-repeat scroll 0 0 transparent;
    background-position: center top;
    height: 50px;
    position: absolute;
    text-indent: -9999em;
    width: 50px;
    left: 321px;
    top: 127px;
}

a.video-play-q-right:hover span{
    background-position: center bottom;
}
  • 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-11T22:31:57+00:00Added an answer on June 11, 2026 at 10:31 pm

    Why a.video-play-q-right:hover span ?

    There’s no link with video-play-q-right class. Try to replace it with a:hover .video-play-q-right


    a.my-class:hover span means ” a link (a element) with class my-class which contain a span “.

    So it will target this:

    <a href="..." class="my-class"><span>Some text</span></a>
    

    But not this:

    <a href="..."><span class="my-class">Some text</span></a>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm putting together an image gallery for an ecommerce site and wanting to use
I'm wanting to use a php variable as the destination email for Amazon SES
I'm wanting to use two Objective-C libraries in a MonoTouch app: the Facebook library
I am wanting to use jquery to do a show/hide of a DIV from
I'm wanting to use the jquery dialog to open a modal dialog, and in
When dealing with a series of numbers, and wanting to use hash results for
Stuck on KVCs in Obj-C again. I am wanting to use KVC to find
Here is the jsFiddle: http://jsfiddle.net/JFwDw/2/ What I'm wanting to do is use links to
When i use one jpeg image with this web-server its very slow to show
I'm trying to use a mapview object in my app, but I need to

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.