Our <abbr> -tag doesn't work in mobile browsers, because there is no "mouse" to hover above.¹
This page https://www.audero.it/blog/2013/12/23/enhancing-the-abbr-element-on-mobile/ suggests a workaround by using fancy CSS code to dynamically enhance abbr-tags to show the message.
I've tested it in my On-Site CSS Markup, but unfortunately I couldn't make it work.
I'm too ignorant about CSS to tell if it ever worked or if I did it wrong.
Interestingly did Corion recently suggest a new HTML way to reveal text on click, using <details><summary> :
Click here to reveal spoiler
Here is the hidden content
It would be nice if someone tried to combine the two approaches in a way that clicking on an abbreviation revealed the title text. Such a pure CSS solution has many advantages.
You can use your CSS markup settings for that.
I'm too busy to experiment right now, but wanted at least leave a note for others or for a future me. :)
Cheers Rolf
(addicted to the Perl Programming Language :)
see Wikisyntax for the Monastery
1) Perl Monks Approved HTML tags
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Workarounds for <abbr> tag on mobile browsers
by pryrt (Abbot) on Sep 17, 2024 at 20:52 UTC | |
by LanX (Saint) on Sep 17, 2024 at 21:12 UTC | |
by choroba (Cardinal) on Sep 17, 2024 at 21:20 UTC | |
Re: Workarounds for <abbr> tag on mobile browsers
by LanX (Saint) on Sep 17, 2024 at 22:10 UTC | |
by LanX (Saint) on Sep 17, 2024 at 22:52 UTC |