'How can I display the HTML "title" attribute in multiple lines in Firefox? [duplicate]
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
<div title="Line 1\nLine 2">Secret</div>
but it didn't work.
Is that possible?
Solution 1:[1]
As stated in How can I use a carriage return in a HTML tooltip? you can just do it like this:
<div title="Line 1
Line 2">Secret</div>
Though it is said that it doesn't work with Firefox.
Solution 2:[2]
You can enter . In other words:
<div title="Line 1 Line 2">Secret</div>
Solution 3:[3]
Either add new lines within the HTML content itself
<div title="Line 1
Line 2">Secret</div>
Or make your own tooltip using JavaScript and CSS.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Community |
| Solution 2 | |
| Solution 3 | Peter Mortensen |
