How to display HTML "title" attribute in multiple lines in Firefox?

Misha Moroshko picture Misha Moroshko · Mar 4, 2011 · Viewed 52.5k times · Source

Possible Duplicate:
How can I use a carriage return in a HTML tooltip ?

I would like to display the "title" attribute tooltip in several lines, so it looks like this:

Line 1
Line 2

I tried to do:

<div title="Line 1\nLine 2">Secret</div>

but it didn't work.

Is that possible ?

Answer

anothershrubery picture anothershrubery · Mar 4, 2011

You can enter &#10;. In other words:

<div title="Line 1&#10;Line 2">Secret</div>