views:

5008

answers:

1

I've got a span that I'm using as a tooltip for a checkbox on a web page, and I want there to be a line break in the tooltip. None of the following have worked:

<span title='This<br />is a tooltip'></span>
<span title='This 
is a tooltip'></span>
document.getElementById('mySpan').setAttribute('title', 'this\nis a tooltip');

Is this even possible?

Duplicate:

+1  A: 

discussed here - suggest use JS based tooltips instead

annakata
Oops :) Searched for 'linebreak', not 'newline'...thanks!
Jonas