spence91 spence91 - 2 months ago 18
HTML Question

newline in <td title="">


Possible Duplicate:

How can I use a carriage return in a HTML tooltip?




I'd like to know if it's possible to force a newline to show in the tooltip when using title property of a TD.
something like

<td title="lineone \n linetwo \n etc...">


Can this be done?

Answer

This should now work with Internet Explorer, Firefox v12+ and Chrome 28+

<img src="'../images/foo.gif'" 
  alt="line 1&#013;line 2" title="line 1&#013;line 2">

Try a JavaScript tooltip library for a better result, something like OverLib.