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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T11:04:54+00:00 2026-05-30T11:04:54+00:00

I use CSS tooltips that must be wrapped in a a href to work.

  • 0

I use CSS tooltips that must be wrapped in a “a href” to work.

<a href="#">
<img src="http://www.url.com/image.png" alt="" width="20" height="20" />
<span class="tooltip center white">
<img src=" http://www.url.com/image.png" alt="" width="80" height="80" />iPad [add_to_cart_anchor item="ipad"]purchase the iPad[/add_to_cart_anchor] </span>
</a>

As you can see, I’m using “The Tooltip” and Cart66 (use of the anchor shortcode).

It outputs as follows:

<a href="#">
<img width="20" height="20" alt="" src="http://www.url.com/image.png"/>
<span class="tooltip center white">
<img width="80" height="80" alt="" src=" http://www.url.com/image.png"/>iPad </span>
</a>
<a href="http://www.url.com/cart?task=add-to-cart-anchor&amp;cart66ItemId=1">purchase the iPad</a>

The problem is that the “purchase the iPad” is a href wrapped inside a href in code, thus it is dropped outside of the tooltip. How can I sort this out so the “purchase…” link is still within the span, hence the tooltip, whilst still allowing the tooltip to work? (I’ve tested without the <a> wrap and the tooltip then doesn’t work at all.)

  • 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-30T11:04:56+00:00Added an answer on May 30, 2026 at 11:04 am

    You can use the :hover selector for any element, not just anchors:

    HTML:

    <span class="tooltipwrapper">
      ...
    </span>
    

    So in your CSS you would have:

    span.tooltipwrapper:hover .tooltip {
      ...
    }
    

    instead of:

    a:hover .tooltip {
      ...
    }
    

    and it should work the same.

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

Sidebar

Related Questions

I want to use CSS sprites on a web site instead of separate image
Is it possible to use CSS sprites for foreground images -- i.e. images that
It has been suggested that I use CSS for displaying XML. I know in
We know how to use CSS to show only part of an image within
Is it possible to use css with controls that generate ClientID and not regular
Html: <html> <head> <title>Tooltips</title> <link rel=stylesheet type=text/css href=tooltips.css /> </head> <body> <ul> <li tabindex=1>
I'm trying to use the JQuery tools tooltips plugin in a site that I'm
dont want to use css frameworks like 960 cause that will lock the width.
I am trying to use css to have a background image with opaque attributes
My goal is to use CSS ONLY for some tooltips. I like the solution

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.