|
Posted by Jukka K. Korpela on 08/29/07 22:10
Scripsit John:
> <acronym title="apple pie custard tart">desserts</acronym>
>
> Is there any way I could place a line feed after pie so I get
>
> apple pie
> custard tart
>
> on two lines
What you really want is a line break in the tooltip that you expect browsers
to show on mouseover. The answer is that you can't achieve that in any
reliable manner. Putting a line break in the source,
<acronym title="apple pie
custard tart">desserts</acronym>
may make some browsers do what you want, but this is really a browser _bug_.
It violates HTML rules that say that a line break inside an attribute value
is equivalent to a space.
What are you trying to achieve, anyway? The word "desserts" ain't no
acronym, so <span> would be the proper markup. But tooltips created by title
attributes are a lousy way of presenting information, except in special
cases where users can be expected to know about them.
--
Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/
Navigation:
[Reply to this message]
|