<acronym> new line
am 29.08.2007 22:53:56 von JohnHi
desserts
Is there any way I could place a line feed after pie so I get
apple pie
custard tart
on two lines
Regards
John
Hi
desserts
Is there any way I could place a line feed after pie so I get
apple pie
custard tart
on two lines
Regards
John
Scripsit John:
> desserts
>
> 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,
desserts
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 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/
On 8/29/07 6:10 PM, Jukka K. Korpela wrote:
> Scripsit John:
>
>> desserts
>>
>> 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,
>
> desserts
>
> 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 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.
>
Scripsit John,
You can try placing an encoded line feed into the title:
although this isn't universally recognized by all browsers for
tool-tips. Firefox, IE, and Safari do. Opera and Seamonkey don't
(treats it as a space).
Although the line feed isn't an HTML named entity
(http://www.w3.org/TR/html401/sgml/entities.html), browsers historically
have recognized this numerical encoding method.
Jukka's suggestion of using a element will work. However, unlike
the element, there is no indication to the viewer (no dotted
underline or other decoration by the browser) that there is anything
additional information available about this word.
Thus, a unique CSS style/class would need to be created for these
's to flag the user that there is additional information available
via tool-tip for the word. You could put a global message on your page
to that effect.
Art
Art wrote: One way is with a CSS styled element
> You can try placing an encoded line feed into the title:
>
>
>
> although this isn't universally recognized by all browsers for
> tool-tips. Firefox, IE, and Safari do. Opera and Seamonkey don't
> (treats it as a space).
>
> Although the line feed isn't an HTML named entity
> (http://www.w3.org/TR/html401/sgml/entities.html), browsers historically
> have recognized this numerical encoding method.
You didn't try this did you? It isn't recognized at all in a title
attribute for any browser that I know of including FF and Opera... Now
on Windows system
(LF+CR)works with Gecko and IE but not on
Opera... Doesn't work with FF on Linux but does with Konqueror... spotty
at best.
>
> Jukka's suggestion of using a element will work. However, unlike
> the element, there is no indication to the viewer (no dotted
> underline or other decoration by the browser) that there is anything
> additional information available about this word.
>
Agree, dessert is not an acronym.
> Thus, a unique CSS style/class would need to be created for these
> 's to flag the user that there is additional information available
> via tool-tip for the word. You could put a global message on your page
> to that effect.
Sill idea but CSS popup would work and degrade where the information
would be availably to the user...
"http://www.w3.org/TR/html4/strict.dtd">
apple pie
custard tartdesserts,
would work. For IE you will have to
use a bit of JavaScript
or HTC file hack.
and the HTC file:
// For MSIE use JScript to attach JS functions to compensate
// for missing pseudo-class support
// from Vladdy http://www.vladdy.net/Demos/IEPseudoClassesFix.html
// updated for html4.01 jnl 3/06
--
Take care,
Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com
Jonathan N. Little wrote:
> Art wrote:
>
>> You can try placing an encoded line feed into the title:
>>
>>
>>
>> although this isn't universally recognized by all browsers for
>> tool-tips. Firefox, IE, and Safari do. Opera and Seamonkey don't
>> (treats it as a space).
>>
>> Although the line feed isn't an HTML named entity
>> (http://www.w3.org/TR/html401/sgml/entities.html), browsers
>> historically have recognized this numerical encoding method.
>
> You didn't try this did you? It isn't recognized at all in a title
> attribute for any browser that I know of including FF and Opera... Now
> on Windows system
(LF+CR)works with Gecko and IE but not on
> Opera... Doesn't work with FF on Linux but does with Konqueror... spotty
> at best.
The Windows line separator is CR + LF, not the other way around.
Harlan Messinger wrote:
> The Windows line separator is CR + LF, not the other way around.
Yep I got them ass-backwards. Should be
(CR+LF)
i.e., 0xD0 0xA0
--
Take care,
Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com
Art wrote:
> On 8/29/07 6:10 PM, Jukka K. Korpela wrote:
>
>> Scripsit John:
>>
>>> desserts
>>>
>>> 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,
>>
>> desserts
>>
>> 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 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.
>>
> Scripsit John,
>
> You can try placing an encoded line feed into the title:
>
>
>
> although this isn't universally recognized by all browsers for
> tool-tips. Firefox, IE, and Safari do. Opera and Seamonkey don't
> (treats it as a space).
I'm still trying to figure out why anyone would treat "desserts" as an
acronym.
--
Blinky RLU 297263
Killing all posts from Google Groups
The Usenet Improvement Project:
http://improve-usenet.org <----------- New Site Aug 28
On 8/30/07 12:16 PM, Jonathan N. Little wrote: One way is with a CSS styled element
> Art wrote:
>
>> You can try placing an encoded line feed into the title:
>>
>>
>>
>> although this isn't universally recognized by all browsers for
>> tool-tips. Firefox, IE, and Safari do. Opera and Seamonkey don't
>> (treats it as a space).
>>
>> Although the line feed isn't an HTML named entity
>> (http://www.w3.org/TR/html401/sgml/entities.html), browsers historically
>> have recognized this numerical encoding method.
>
> You didn't try this did you? It isn't recognized at all in a title
> attribute for any browser that I know of including FF and Opera... Now
> on Windows system
(LF+CR)works with Gecko and IE but not on
> Opera... Doesn't work with FF on Linux but does with Konqueror... spotty
> at best.
Yes :-).
To clarify, the results for Firefox, Opera, Safari, and Seamonkey were
observed on a Mac. IE6 was observed under W2K. However, I mistakenly
transcribed the Seamonkey and Firefox results: Works on Seamonkey,
yields a single space on FF.
On IE6, the CR is ignored, the LF is sufficient.
Opera ignores the LF and maps the CR to a space.
Actually, encoding a LF/CR combination on Safari results in TWO line feeds.
I saw the same title behavior with both and .
Your results on Linux re-enforces my original statement - this encoding
isn't universally recognized by all browsers for tool-tips.
Thus, the LF/CR encoding with either or
>
>
>
>
> apple pie
custard tartdesserts,
> would work. For IE you will have to
> use a bit of JavaScript
> or HTC file hack.
>
>
>