Go Back   Velocity Reviews > Newsgroups > HTML
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply

HTML - <a title=""> tag and line breaking

 
Thread Tools Search this Thread
Old 11-07-2004, 09:26 PM   #1
Default <a title=""> tag and line breaking


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




\(. \)\( .\) siorbaj cycka
  Reply With Quote
Old 11-07-2004, 09:33 PM   #2
brucie
 
Posts: n/a
Default Re: <a title=""> tag and line breaking

In alt.html (. )( .) siorbaj cycka said:

> is there any chance to brake line in tag:
>
> <a title="tip message"></a>


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

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


'<a title="tip'."\r\n".'message"></a>'


--
the facts and opinions expressed by brucies
l i t t l e v o i c e s
are not necessarily the same as those held by brucie.
  Reply With Quote
Old 11-07-2004, 09:38 PM   #3
\(. \)\( .\) siorbaj cycka
 
Posts: n/a
Default Re: <a title=""> tag and line breaking

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


thnx dude!

is that only way?


  Reply With Quote
Old 11-07-2004, 09:41 PM   #4
David Dorward
 
Posts: n/a
Default Re: <a title=""> tag and line breaking

brucie wrote:

>> is there any chance to brake line in tag:


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

--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is
  Reply With Quote
Old 11-07-2004, 09:52 PM   #5
brucie
 
Posts: n/a
Default Re: <a title=""> tag and line breaking

In alt.html (. )( .) siorbaj cycka said:

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


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

--
the facts and opinions expressed by brucies
l i t t l e v o i c e s
are not necessarily the same as those held by brucie.
  Reply With Quote
Old 11-07-2004, 09:55 PM   #6
brucie
 
Posts: n/a
Default Re: <a title=""> tag and line breaking

In alt.html David Dorward said:

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


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


--
the facts and opinions expressed by brucies
l i t t l e v o i c e s
are not necessarily the same as those held by brucie.
  Reply With Quote
Old 11-07-2004, 10:28 PM   #7
Jukka K. Korpela
 
Posts: n/a
Default Re: <a title=""> tag and line breaking

David Dorward <> wrote:

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

--
Yucca, http://www.cs.tut.fi/~jkorpela/
Pages about Web authoring: http://www.cs.tut.fi/~jkorpela/www.html


  Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump