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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T10:16:46+00:00 2026-06-13T10:16:46+00:00

I have a simple CSS image map that works like this: HTML: <div style=display:block;

  • 0

I have a simple CSS image map that works like this:

HTML:
<div style="display:block; width:791px; height:1022px; background:url(images/image.jpg); position:relative; margin:2px auto 2px auto;">
<div><a class="imagemaplink" style="left:112px; top:564px; background:transparent; display:block; width:336px; height:0; padding-top:29px; overflow:hidden; position:absolute;" title="Image1" href="#"></a></div>
………

CSS:
a.imagemaplink:hover{background:transparent; border:1px solid black; color:black;}

This works great, but I would like to add a pointer image to the left of the link when hovered. The pointer image can be made a link (doesn’t matter), but I do not want this link to be apart of the border when the user hovers. For example:

what i want to do

What is an efficient way of doing this? 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-06-13T10:16:47+00:00Added an answer on June 13, 2026 at 10:16 am

    I did a live demonstration here:
    http://jsfiddle.net/5abv6/

    I used a background color instead of an image though for the example.

    But what I did was set up your 3 links in HTML:

        <a href="#" class="main-link"><span class="pointer">
            <!-- img of finger could go here or make it background in css --></span>
            <span class="border">Link 1</span>
        </a>
        <a href="#" class="main-link">
            <span class="pointer"></span><span class="border">Link 2</span>
        </a>
        <a href="#" class="main-link">
            <span class="pointer"></span><span class="border">Link 3</span>
        </a>
    

    And the CSS for it (based on an image pointer image of 20px by 20px – adjust accordingly)

    a.main-link {display:block; height:30px; width:150px; margin-bottom:5px;}
    
    a.main-link .border {
        margin-left:40px;
        display:block;
        height:30px;
        width:105px;
        padding-left:5px; /* margin-left + width + padding-left = width of .main-link */
    }
    
    a.main-link:hover .border {border:1px solid #000;}
    a.main-link:hover .pointer {
        display:block;
        background:url(yourpointerimage.jpg) no-repeat 0 0;
        width:20px;
        height:20px;
        float:left;
        margin-top:5px;
        margin-left:10px; /* I just added some margins to center it more to the link */
    }
    

    The span class="pointer" is where your pointer image would appear. The span class="border" is what puts the border around the link when hovered & all of it is in the a tag so when any of it is hovered, the border & pointer appear appropriately.

    Alternatively, you could put the image in the HTML in between the <span class="pointer"> </span> And in the CSS do .pointer {display:none;} but on hover do a.main-link:hover .pointer {display:block;}

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This is probably a basic html/css question... I have a simple one-button form that
I have HTML + CSS text. I need some lib with simple function like
I have coded a simple div containing an image that follows the mouse cursor
I have a simple style for my CSS that stretched my background beautifully in
I have a simple HTML/CSS list that is displayed inline. I am using a
I have an anchor tag with some simple CSS: div { background-color: gray; /*
I have defined a fieldset in HTML, and applied the following (simple) CSS rules
I have sample site: /index.html /appcache.manifest /style.css /test.js index.html: <!DOCTYPE HTML> <html manifest=appcache.manifest> <head>
I have a simple CSS problem In this site http://web.cinaird.se/pdf/test.htm (<--removed) I have a
I have a simple css issue but I couldn't figure it out at this

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.