How to make a line break in the title attribute in firefox? In the opera, this is the <img title='первая строка\nвторая строка\nи тд.'> . Displays as follows:

 первая строка вторая строка и тд. 

But firefox sculpts everything into one line :(

  • I'm sorry, I did not think about that)) it is quite possible that in any way. but there is such a great thing as a tooltip. You can try using this technique to solve your problem. - LeD4eG

2 answers 2

In title, transfer the line break character = complete absence of cross-browser compatibility. I recommend using Tooltip. If you need more details, look at this site . Here when you hover on the information icon. JS file on the same page, СSS in the same place.

    Option 1:
    <img title='первая строка вторая строка и тд.' />

    Option 2:
    <img title='первая строка&#013;вторая строка&#013;и тд.' />

    • According to the HTML standard, any number of consecutive whitespace characters must be interpreted as one space. - German Borisov