|
Posted by Alan J. Flavell on 11/16/05 01:27
On Tue, 15 Nov 2005, Barbara de Zoete wrote:
> On Tue, 15 Nov 2005 23:48:48 +0100, Stefan Mueller
> <seekware-remove-@yahoo.com> wrote:
>
> > Is there an attribute I can use only to add a tooltip text to a word?
>
> The generic inline element (if there is nothing more appropriate available) is
> a span:
Yes. But if there is something more-specific available, one should
use it. Although it's not very appropriate to your specific example,
there are situations where <dfn>, <abbr> or <acronym> could be
appropriate, which is why this appears:
abbr, acronym, dfn, .abbr { border: 1px dotted #666;
background-color: #eee; color: #030;
border-top: none; cursor: help; }
in my stylesheet. The reason for the ".abbr" is that when I'm
in a good mood, I do abbreviations like this:
<span class="abbr" title="whatever"><abbr
title="whatever">...</abbr></span>
for the benefit of a certain back-level operating system component
that thinks it's a browser. When I'm feeling crabby, I just use
<abbr> and leave the span off, on the grounds that those who chose the
back-level software are getting what they paid for.
cheers
yes, I could simplify that border stuff now, but specifying the
border and the border-top separately was a workaround for some
ancient browser bug.
Navigation:
[Reply to this message]
|