I'm currently adding verbose tooltips to our site, and I'd like (without having to resort to a whizz-bang jQuery plugin, I know there are many!) to use carriage returns to format the tooltip.
To add the tip I'm using the title
attribute. I've looked around the usual sites and using the basic template of:
<a title='Tool?Tip?On?New?Line'>link with tip</a>
I've tried replacing the ?
with:
<br />
&013; /
\r\n
Environment.NewLine
(I'm using C#)
None of the above works. Is it possible?

<----- This is the text needed to insert Carry Return.Try character 10. It won't work in Firefox though. :(
http://modp.com/wiki/htmltitletooltips
Update:
As of January 2015 Firefox does support using
to insert a line break in an HTMLtitle
attribute. See the snippet example below.hack but works - (tested on chrome and mobile)
just add no break spaces till it breaks - you might have to limit the tooltip size depending on the amount of content but for small text messages this works:
Tried everything above and this is the only thing that worked for me -
We had a requirement where we needed to test all of these, here is what I wish to share
Fiddle
Just use this:
You can add new line on title by using this


.I don't believe it is. Firefox 2 trims long link titles anyway and they should really only be used to convey a small amount of help text. If you need more explanation text I would suggest that it belongs in a paragraph associated with the link. You could then add the tooltip javascript code to hide those paragraphs and show them as tooltips on hover. That's your best bet for getting it to work cross-browser IMO.