I want to put some line breaks in my tooltip but something goes wrong. I tried to use <br>
with data-html="true"
but there are just br
as string(insted new line). I have also tried 

and 
but it works only for first linebreak(second and others don't works - browser ignores this char). How is it possible to get a few new lines in tooltip as title
?
Asked
Active
Viewed 1,125 times
-1

joe paulens
- 601
- 2
- 7
- 9
-
It's not. Whitespace is whitespace, and the browser will decide how to display the title. – Bergi Apr 07 '17 at 12:59
-
@Pete I tried just press `enter` but works only for first line.... – joe paulens Apr 07 '17 at 13:05
-
Show your code and perhaps we can tell why it isn't working otherwise paste your comment under the solution that says to use enter - don't direct it at me – Pete Apr 07 '17 at 13:07
-
Google, its working. – Anil Apr 07 '17 at 13:07
1 Answers
0
To give a line break in a tooltip simply use the enter key like the example below:
<a href="http://google.com" title='Sample
text'>Google</a>

Shakti Phartiyal
- 6,156
- 3
- 25
- 46
-
2...WHAT. Why this, HTML? Why not use something logical? Well, it works.... – Feathercrown Apr 07 '17 at 13:02
-
1