<acronym> new line

<acronym> new line

am 29.08.2007 22:53:56 von 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

Re: <acronym> new line

am 30.08.2007 00:10:18 von jkorpela

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/

Re: <acronym> new line

am 30.08.2007 17:19:08 von Steven Platt

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

Re: <acronym> new line

am 30.08.2007 18:16:18 von lws4art

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.

>
> 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">




CSS balloon





One way is with a CSS styled element
apple pie
custard tart
desserts
,
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

Re: <acronym> new line

am 30.08.2007 19:06:32 von Harlan Messinger

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.

Re: <acronym> new line

am 30.08.2007 19:20:29 von lws4art

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

Re: <acronym> new line

am 30.08.2007 19:55:38 von Blinky the Shark

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

Re: <acronym> new line

am 30.08.2007 20:10:43 von Steven Platt

On 8/30/07 12:16 PM, 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.
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
>
>
>
>

One way is with a CSS styled element
> apple pie
custard tart
desserts
,
> 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
>
>
>
>
>
>

>
>

Re: <acronym> new line

am 30.08.2007 20:20:28 von Harlan Messinger

Art wrote:

>
> 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