3 ms·
I don't know why you got downvoted because this is a good idea. The only criticism I have is that usually the dotted underline is associated with adwords on so
by TheCowboy 5y ago
I don't know why you got downvoted because this is a good idea.
The only criticism I have is that usually the dotted underline is associated with adwords on some sites. I don't know if there's a better way to do it. Superscript question marks at the end of the phrase?
- StavrosK 5y agoHmm, I have an adblocker so I can't say I've seen that pattern much, but you can easily change the display for it with a few lines of CSS.
- moshmosh 5y agoThere's a built-in HTML tag for this that traditionally uses the dotted underline. Looks like it doesn't do that on all browsers, though, these days, but it's a CSS tweak to add it. Behavior also seems worse than it used to on some browsers—safari makes you hover for a little to see the expanded definition, while I recall clicking to see it before, which is better. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/abbr https://developer.mozilla.org/en-US/docs/Web/HTML/Element/ab...
- amatecha 5y agoThere's also the <details> element: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/details https://developer.mozilla.org/en-US/docs/Web/HTML/Element/de... It works quite nicely but is a block element by default. You can override that with some CSS (display: inline or inline-block) and style it to look more like a regular piece of inline content. Pretty useful IMO!