<a title=""> tag and line breaking

  • Thread starter \(. \)\( .\) siorbaj cycka
  • Start date
S

\(. \)\( .\) siorbaj cycka

is there any chance to brake line in tag:

<a title="tip message"></a>

???

i tried using "\n" but with no effect.

thnx for help, or any advice
 
D

David Dorward

<a title="tip
message"></a>

But browser support is variable, and some browsers display a non-printing
character instead of a line break. You are probably better off keeping your
short piece of advisory information... short.
 
B

brucie

In alt.html (. )( .) siorbaj cycka said:
is that only way?

i thought you were after breaking it in the source not in the actual
'tool tip'. IE allows it, real browsers don't because they're supposed
to ignore LFs and replace CRs with a tab or space.

put your goodies on the page.
 
B

brucie

In alt.html David Dorward said:
But browser support is variable,

i'm horrified that you would think i would ever recommend such a thing.
and some browsers display a non-printing character instead of a line
break.

gecko bug
You are probably better off keeping your short piece of
advisory information... short.

i thought he meant in the source, not in the tool tip. it was the use of
\n that threw me.
 
J

Jukka K. Korpela

David Dorward said:
You are probably better off keeping your
short piece of advisory information... short.

Maximum of 50 characters, to be exact. The title attribute's value may be
longer, but then
a) you'll have the problems with line breaks - some browsers
automagically break the line, some don't, and line breaks in attribute
values*) are inconsistently handled
b) users have difficulties in reading the tooltips (which haven't been
that well implemented in browsers).

*) Few people know how they _should_ be handled by SGML or XML
specifications. I once studied this and learned it, and then I forgot.
It's simply a mess.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,007
Latest member
obedient dusk

Latest Threads

Top