ruby on rails - How can I display simple tooltips on icons in html? -
i using activescaffold in ruby on rails app, , save space in table have replaced default "actions" text in table (ie. "edit", "delete", "show") icons using css. have added couple of custom actions action_link.add ("move" , "copy").
for clarity, i have tooltip pop related action (ie. "edit", "copy") when hover mouse on icon.
i thought adding simple "alt" definition tag, doesn't appear work.
can point me in right direction?
the alt
attribute used alternative image, in case of image missing, or in text browser.
ie got wrong, when made alt
appear tooltip. never meant that.
the correct attribute title
, of course doesn't tooltip in ie.
so, have tooltip show in both ie, , firefox/safari/chrome/opera, use both alt
attribute , title
attribute.
Comments
Post a Comment