I use \n to create a linebreak in web tooltip. This works in IE and in Chrome. But Firefox ignores it.
What will work universally as linebreak character in tooltip? Thanks.
Multiline tooltips allow text to be displayed on more than one line. They are supported by version 4.70 and later of the common controls. Your application creates a multiline tooltip by sending a TTM_SETMAXTIPWIDTH message, specifying the width of the display rectangle.
Just use the entity code 
 for a linebreak in a title attribute.
You can use 
 or 
 .
<br>: The Line Break element. The <br> HTML element produces a line break in text (carriage-return).
Update: This has been cleared up in HTML5 using the title attribute. Now Firefox 12 supports it. Try this:
<span title="First line Second line">Test</span>
Bad news: Firefox does not line break tooltips. This is actually a non-standard html extension, ie a bug in MSIE that may cause problem with certain pages.
See this bug on the firefox issue tracker.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With