HTML5: Show hint text near to cursor

I am looking for a way to show a text (hint) that moves with the cursor. Is there a way to do it with GWT or native HTML5?

Answers


There is the ability to do tooltips (if that's what you're looking for) with straight CSS and HTML.

Linky.

I can't confirm I've used this before, but the code would be something like this:

HTML

<p>I <span data-tooltip=", really" class="tooltip">really</span> like pie.</p>‚Äč

CSS

.tooltip:hover:after { content: attr(data-tooltip); }

Here's a jsFiddle to play with.


Need Your Help

Syntax highlighting with attributed strings on UITextView

ios uitextview syntax-highlighting nsattributedstring

There is an excellent project to add syntax highlighting and line numbers to your project: https://github.com/illyabusigin/CYRTextView