Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

<a title=...>

Status
Not open for further replies.

forrozeiro

Programmer
Sep 1, 2001
38
BR
Hi,

Using the code <a title='description'>desc</a>, I get a square with the text 'description' whenever I put the mouse pointer over 'desc'. Is there a way I can insert line breaks or tabs into the text that is poped up to the user ? Something like:

<!-- this doesn't work -->
<a title='description\nbla\tbla'>desc</a>

And the result being:

description
bla bla

Thank you in advance.
 
this was pretty much answered over in the Javascript forum :)

<a title=&quot;Wee look at me I am
Writing More Than One

Line, or Something&quot;>desc</a>

hope it helps Suceess, thats the way you spell success!
Got a question? Ask IMOZRMY!
 
Hi forrozeiro,

Look at my answer in thread215-201579

I didn't test if it also works for &quot;title&quot; but I think it does.

Hope this helps,
Erik


<!-- My sport: Boomerang throwing !!
This year I will participate at the World Championships in Germany. (!! Many Happy Returns !! -->
 
Right. That method doesnt quite work in NS6, and doesnt work in 4 at all as it does not support the
Code:
TITLE
method. So ya just have to pick the way that best suits your needs. Suceess, thats the way you spell success!
Got a question? Ask IMOZRMY!
 
Thank you guys for your help!
I am sorry for my posting the same question in different fóruns...
Well, I'll use the
solution. I´ve tested it and it worked fine. I cannot simply use the enter from keyboard ( as Dookie2k2 suggested) because the application I am working on uses internationalization. All the text that appears to the user come from a resource bundle file (a .properties file, that uses the linebreak as a separator), it's not inserted directly on the HTML code (I am using JSP).
Thank you again and sorry for my English.
forrozeiro.
 
Sorry, I meant &quot;I'll use the & # 1 0 ; solution'.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top