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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T22:26:00+00:00 2026-05-23T22:26:00+00:00

My current project involves setting up a bunch of sidebar links, such that the

  • 0

My current project involves setting up a bunch of sidebar links, such that the finished design looks like this:
Finished design.

The envelopes are supposed to move and overlap (i.e., change z-index), depending upon which icon/text is currently has :hover state.

I thought each would be a separate PNG file, but I’ve been given a sprite that looks like this:
Sprite

Any suggestions how I could achieve this? Normally I’d just change the background position of the list elements each piece of text is in, but I don’t think this is possible given the overlapping nature of these. Does he just need to export it differently?

Many thanks…

  • 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-23T22:26:01+00:00Added an answer on May 23, 2026 at 10:26 pm

    To me it looks like that sprite would work perfectly. The left most image is for when book is hovered, second image for twitter, third for facebook, forth for email. I’m guessing the last one is just the default state. Its tricky to make this work with pure css and :hover (but possible!), however, it would be extremely easy with javascript.

    For the pure css solution, the div with the sprite would have to be the child of all the text elements, so you could change the background based on :hover on the parent (the text). If this isn’t clear, I can make you some example code.

    Edit:

    Its not perfect, but its a proof of concept.

    JsFiddle: http://jsfiddle.net/jp6fy/

    CSS:

    #side{
        position:relitive;
        height:341px;
        width:250px;
    }
    
    #link1{
        top:0;
    }
    
    .link{
        position:absolute;
        left:0;
        top:85px;
        height:85px;
        padding-left:160px;
        width:90px;
    }
    
    #image{
        position:absolute;
        top:-255px;
        left:0;
        z-index:-1;
        background:url(https://i.stack.imgur.com/I2Y4k.png) -720px 0;
        height:341px;
        width:150px;
    }
    
    #link1:hover #image{
        background-position:-540px 0;
    }
    
    #link2:hover #image{
        background-position:-360px 0;
    }
    
    #link3:hover #image{
        background-position:-180px 0;
    }
    
    #link4:hover #image{
        background-position:-0px 0;
    }
    

    HTML:

    <div id='side'>
        <div class='link' id='link1'>
            email
            <div class='link' id='link2'>
                facebook
                <div class='link' id='link3'>
                    twitter
                    <div class='link' id='link4'>
                        book
                        <div id='image'></div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

My current project involves deploying an upgraded .exe file that runs as a Windows
I apologise for the length of this question. My current Mathematica programming project involves
My current project involves writing Perl code inside a Solaris VMWare appliance (hosted on
My team's current project involves re-writing retrieval libraries in JavaScript. We are basically looking
My current project for work involves developing a SharePoint 2007 WebPart which will be
I am working on a large project that involves taking thousands (30,000+) static web
This is specific to my current project. But maybe the answers will reveal some
I'm trying to design a data model for my current project, and I'm having
In our current project we are providing a PDF download that can be customized
I'm working on a project that involves creating a spline from a defined set

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.