to any component in html when i add tool tip text by alt="my tool tip text". it works in other browsers but not in fire fox. why. is there a way to enable it in firefox
+1
A:
Did you try title = "Your tooltip text"
??
for example -
<a href="#" title= "Some text">Link</a>
<div title= "Some text">Div</div>
Wbdvlpr
2009-08-20 08:49:44
no space after the "="
Wbdvlpr
2009-08-20 08:51:50
+1
A:
Firefox doesn't display alt attributes as tooltips - it's a design decision.
You can use the title attribute instead (or as well).
Greg
2009-08-20 08:49:47
It's not actually a "design decision", it's a question of standards compliance. "alt" attributes were never intended to be used as tooltips; "title" attributes were. Even Microsoft have finally accepted that they got it wrong, and have fixed this bug in IE 8 :-)
NickFitz
2009-08-20 11:25:30
+4
A:
alt != tooltip
Here you can see why Firefox doesn't display the tooltip. Long story short, the alt attribute does not have anything to do with tooltips. It's just gotten into fashion over time, probably due to IE.
However, there are Javascript workarounds for displaying the tooltip anyway, but I suggest you take a different approach.
JorenB
2009-08-20 08:51:08