Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to I add a line feed to a title style tooltip in firefox?

Firefox does not seem to support line feeds in the title attribute. I have tried \r, \r\n, \n, 
, 
, and still found nothing that works.

Does anyone have a hack to get around this?

like image 336
GC_ Avatar asked Dec 05 '25 19:12

GC_


1 Answers

There is nothing is the spec about how exactly browsers have to display the value in title attributes.

Is simply says:

Values of the title attribute may be rendered by user agents in a variety of ways. For instance, visual browsers frequently display the title as a "tool tip"

(Emphasis mine)

So, not only is there nothing about line breaks, but the actual behavior of "tool tip" is not mandatory.

like image 62
Oded Avatar answered Dec 08 '25 09:12

Oded



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!