This variation shows promising results, and could be used as a base for a stable solution
(Not tested on desktop yet)
abbr[title] { position: relative; /* ensure consistent styling across browsers */ text-decoration: underline dotted; } abbr[title]:hover::after, abbr[title]:focus::after { content: attr(title); /* position tooltip like the native one */ position: relative; left: 0; bottom: 2em; width: auto; white-space: nowrap; /* style tooltip */ background-color: yellow; color: blue; border-radius: 3px; box-shadow: 1px 1px 5px 0 rgba(0, 0, 0, 0.4); font-size: 14px; padding: 3px 5px; }
Cheers Rolf
(addicted to the Perl Programming Language :)
see Wikisyntax for the Monastery
In reply to Re^2: Workarounds for <abbr> tag on mobile browsers
by LanX
in thread Workarounds for <abbr> tag on mobile browsers
by LanX
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |