3 ms·
What's wrong with title="my took tip" and let th browser do it? For browsers that don't its a single line of jQuery.
by hnriot 14y ago
What's wrong with title="my took tip" and let th browser do it? For browsers that don't its a single line of jQuery.
- danso 14y agoBecause the browser may render the tool tip slower than you'd like. Plus, it may be too generic a look for bespoke sites.
- pornel 14y agoUnfortunately `title` implementations are broken for pretty much everybody except mouse users on desktop: http://www.paciellogroup.com/blog/2013/01/using-the-html-title-attribute-updated/ http://www.paciellogroup.com/blog/2013/01/using-the-html-tit...
- baby 14y agoit's just stylizing. What CSS does in general.
- ibrahima 14y agoIt'd be interesting if you could just apply CSS to title attributes rather than have to add stuff to the DOM to reimplement a basic browser feature. Certainly these types of tooltip libraries look and behave better, but I wonder if it's really the best solution.
- baby 14y agoLegit CSS for tooltip and scrolling bars will arrive some day. I hope.
- philfreo 14y agoThe time spent hovering for the built in title attribute to be displayed is so long that most users will never see/notice the tooltip.