3

I have a cool tooltip to work with using some data attributes as seen here : http://www.frequency-decoder.com/demo/css-tooltips/

But the problem is the text inside the tooltip is not selectable, even after I add property:

cursor: text;

Any idea how to make that tooltip selectable?

Thanks

UPDATE: This doesn't seem to help either:

-webkit-touch-callout: all;
-webkit-user-select: all;
-khtml-user-select: all;
-moz-user-select: all;
-ms-user-select: all;
user-select: all;

Values: none | text | toggle | element | elements | all | inherit

Ref:

How to disable text selection highlighting using CSS?

http://www.w3.org/TR/2000/WD-css3-userint-20000216#user-select

Community
  • 1
  • 1
swan
  • 2,509
  • 3
  • 24
  • 40

2 Answers2

1

There is no way to make it selectable. The hint must exists only on :hover of the element. I had a hard time to move the mouse over the hint itself.

btw i suggest to remove the animation from the css (and make opacity: 1) it's much nicer and responsive.

Aleksandrenko
  • 2,987
  • 6
  • 28
  • 34
1

This is not the kind of tooltip to do this.

Try something with jQuery like this one (random google search: http://jquerytools.org/demos/tooltip/index.html)

Or look at this website with a compilation of tooltip scripts http://www.1stwebdesigner.com/css/stylish-jquery-tooltip-plugins-webdesign/

Scriptor
  • 1,125
  • 1
  • 6
  • 13
  • Thanks alot for alternatives. This is the closest I can get with data attributes: http://www.red-team-design.com/easy-css3-jquery-tooltips – swan Apr 18 '12 at 10:43