How to make Anchor tag show the title without making it clickable

jeremy

So I've created a little help thing using an anchor tag so that when users hover over the "?" they can see a little box with some instructions on it. It works well but when users click on the "?" link it will go to the top of the page. So I am wondering if there is a way to disable that event from happening…

HTML:

<a class="questions" href="#" title="instructions are here">?</a>

CSS:

.questions:link{
    color:#fff;
    background-color:#feb22a;
    width:12px;
    height:12px;
    display:inline-block;
    border-radius:100%;
    font-size:10px;
    text-align:center;
    text-decoration:none;
    -webkit-box-shadow: inset -1px -1px 1px 0px rgba(0,0,0,0.25);
    -moz-box-shadow: inset -1px -1px 1px 0px rgba(0,0,0,0.25);
    box-shadow: inset -1px -1px 1px 0px rgba(0,0,0,0.25);
}

I've tried to use things like this but it disables the instructions from coming up.

This:

.not-active {
   pointer-events: none;
   cursor: default;
}
j08691

The title attribute is a global attribute so you can use it on other elements, like a span for example, which won't cause a jump:

<span class="questions" href="#" title="instructions are here">?</span>

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

How to make anchor tag clickable without text

From Dev

Make anchor tag with image clickable

From Dev

Make anchor tag with image clickable

From Dev

How to make li clickable without affecting inner anchor?

From Dev

making whole div tag clickable ,css html anchor tag

From Dev

Anchor tag not clickable

From Dev

How to make an HTML anchor as clickable link in TTTAttributedLabel?

From Dev

How can I make anywhere on a webpage clickable and navigate to an address without making the entire page a link?

From Dev

How to make the Toolbar title clickable exactly like on ActionBar, without setting it as ActionBar?

From Dev

How to prevent anchor tag from following the link on click, but make it show the submenu?

From Dev

How to make div tag clickable link?

From Dev

How to make <a> tag clickable of html in UWP Webview?

From Dev

How can I make only the li value clickable and generate an anchor?

From Dev

How to make an HTML anchor tag bolder on hover without css, only changing the inline style?

From Dev

how to make anchor tag match parent size

From Dev

How to Make a <td> Clickable As a Link (Without Javascript)

From Dev

How to make <a href> clickable without text

From Dev

How to make <a href> clickable without text

From Dev

make absolute div that appears above relative anchor tag (img inside) both clickable

From Dev

How to make Accordion Panel-title clickable area bigger

From Dev

Anchor tag not clickable only in IE9

From Dev

Change title to data-title in anchor tag?

From Dev

making title in highcharts clickable and work with bootstrap popover?

From Dev

Make the navigationbar title clickable swift

From Dev

How to make text appear when hovering over an image that's inside an anchor tag and the anchor tag is inside a div?

From Dev

How to prevent scrolling of page while using Show and Hide anchor tag?

From Dev

How do I make this tag a clickable inside the input?

From Dev

Make <i> tag clickable with Angular

From Dev

how can make hashtag clickable and show it in the post in Django?

Related Related

  1. 1

    How to make anchor tag clickable without text

  2. 2

    Make anchor tag with image clickable

  3. 3

    Make anchor tag with image clickable

  4. 4

    How to make li clickable without affecting inner anchor?

  5. 5

    making whole div tag clickable ,css html anchor tag

  6. 6

    Anchor tag not clickable

  7. 7

    How to make an HTML anchor as clickable link in TTTAttributedLabel?

  8. 8

    How can I make anywhere on a webpage clickable and navigate to an address without making the entire page a link?

  9. 9

    How to make the Toolbar title clickable exactly like on ActionBar, without setting it as ActionBar?

  10. 10

    How to prevent anchor tag from following the link on click, but make it show the submenu?

  11. 11

    How to make div tag clickable link?

  12. 12

    How to make <a> tag clickable of html in UWP Webview?

  13. 13

    How can I make only the li value clickable and generate an anchor?

  14. 14

    How to make an HTML anchor tag bolder on hover without css, only changing the inline style?

  15. 15

    how to make anchor tag match parent size

  16. 16

    How to Make a <td> Clickable As a Link (Without Javascript)

  17. 17

    How to make <a href> clickable without text

  18. 18

    How to make <a href> clickable without text

  19. 19

    make absolute div that appears above relative anchor tag (img inside) both clickable

  20. 20

    How to make Accordion Panel-title clickable area bigger

  21. 21

    Anchor tag not clickable only in IE9

  22. 22

    Change title to data-title in anchor tag?

  23. 23

    making title in highcharts clickable and work with bootstrap popover?

  24. 24

    Make the navigationbar title clickable swift

  25. 25

    How to make text appear when hovering over an image that's inside an anchor tag and the anchor tag is inside a div?

  26. 26

    How to prevent scrolling of page while using Show and Hide anchor tag?

  27. 27

    How do I make this tag a clickable inside the input?

  28. 28

    Make <i> tag clickable with Angular

  29. 29

    how can make hashtag clickable and show it in the post in Django?

HotTag

Archive