Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how can I display tooltip or item information on mouse over?

Tags:

html

mouseover

I am displaying 5 userImage on one screen.I want to display userID and email on mouseover on those userImage.I used alt property of image control but that not working in mozila,chrome and some versions of IE. So what are the other better ways to display info on mouseover?

like image 810
nectar Avatar asked Jun 07 '10 18:06

nectar


People also ask

How do I show text on mouseover?

HTML: Use a container element (like <div>) and add the "tooltip" class to it. When the user mouse over this <div>, it will show the tooltip text. The tooltip text is placed inside an inline element (like <span>) with class="tooltiptext" .

How do I make my tooltip always visible?

Single element To make an element display its tooltip permanently, we use its showTooltipOn property. To make tooltip always be shown, set it to "always" .

How do I display the input field tooltip?

Here we have set the content attribute to content: attr(alt); this property will display the tooltip by using the alt attribute of the anchor tag. Whatever you give to the alt tag of the anchor element it will be displayed as a tooltip.

What is a hover tooltip?

Alternatively known as a balloon, help balloon, flyover help, or ScreenTip, a Tooltip is a text description near an object. The tooltip is displayed when the user hovers the mouse cursor over the object.


1 Answers

Use the title attribute while alt is important for SEO stuff.

like image 92
Sarfraz Avatar answered Oct 24 '22 06:10

Sarfraz